diff --git a/main.go b/main.go index 825da4b..3978de3 100644 --- a/main.go +++ b/main.go @@ -152,7 +152,10 @@ func main() { case "clipclear": offline.ClipClearArgument() case "sync": - cli.SshypSync() // TODO Remove after native sync is implemented + if !offline.Windows { + cli.SshypSync() // TODO Remove after native sync is implemented + } + os.Exit(0) case "init": cli.TempInitCli() case "tweak": // TODO offline.Tweak(), exit after run diff --git a/src/cli/entryReader.go b/src/cli/entryReader.go index 8eadcdb..3ba9de9 100644 --- a/src/cli/entryReader.go +++ b/src/cli/entryReader.go @@ -68,7 +68,7 @@ func EntryReader(decryptedEntry []string, hidePassword bool, sync bool) { fmt.Println() } - if sync { + if sync && !offline.Windows { SshypSync() // TODO Remove after native sync is implemented } diff --git a/src/offline/2globalsUNIX.go b/src/offline/2globalsUNIX.go index 513f6d8..84749fa 100644 --- a/src/offline/2globalsUNIX.go +++ b/src/offline/2globalsUNIX.go @@ -9,3 +9,4 @@ var ConfigPath = ConfigDir + "/libmutton.ini" // PathSeparator defines the character used to separate directories in a path (platform-specific) const PathSeparator = "/" +const Windows = false // TODO temporary, remove after native sync is implemented diff --git a/src/offline/2globalsWIN.go b/src/offline/2globalsWIN.go index 8e15007..2306b52 100644 --- a/src/offline/2globalsWIN.go +++ b/src/offline/2globalsWIN.go @@ -9,3 +9,4 @@ var ConfigPath = ConfigDir + "\\libmutton.ini" // PathSeparator defines the character used to separate directories in a path (platform-specific) const PathSeparator = "\\" +const Windows = true // TODO temporary, remove after native sync is implemented