Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
b38f01ed
Commit
b38f01ed
authored
Nov 19, 2014
by
ᴍᴀᴛᴛ ʙᴇʟʟ
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #365 from jbenet/windows-hotfixes
Windows Hotfixes
parents
7b09b7bd
ab16237b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
commands/cli/parse.go
commands/cli/parse.go
+6
-0
core/commands/mount_windows.go
core/commands/mount_windows.go
+7
-0
No files found.
commands/cli/parse.go
View file @
b38f01ed
...
...
@@ -6,6 +6,7 @@ import (
"fmt"
"os"
fp
"path/filepath"
"runtime"
"strings"
cmds
"github.com/jbenet/go-ipfs/commands"
...
...
@@ -138,6 +139,11 @@ func parseOptions(input []string) (map[string]interface{}, []string, error) {
}
func
parseArgs
(
inputs
[]
string
,
stdin
*
os
.
File
,
argDefs
[]
cmds
.
Argument
,
recursive
bool
)
([]
string
,
[]
cmds
.
File
,
error
)
{
// ignore stdin on Windows
if
runtime
.
GOOS
==
"windows"
{
stdin
=
nil
}
// check if stdin is coming from terminal or is being piped in
if
stdin
!=
nil
{
if
term
,
err
:=
isTerminal
(
stdin
);
err
!=
nil
{
...
...
core/commands/mount_windows.go
View file @
b38f01ed
...
...
@@ -4,6 +4,7 @@ import (
"errors"
cmds
"github.com/jbenet/go-ipfs/commands"
"github.com/jbenet/go-ipfs/core"
)
var
mountCmd
=
&
cmds
.
Command
{
...
...
@@ -16,3 +17,9 @@ var mountCmd = &cmds.Command{
return
errors
.
New
(
"Mount isn't compatible with Windows yet"
),
nil
},
}
func
Mount
(
node
*
core
.
IpfsNode
,
fsdir
,
nsdir
string
)
error
{
// TODO
// currently a no-op, but we don't want to return an error
return
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment