Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppsCmd = &cobra.Command{
Use: "apps",
Short: "Manage apps",
}
View Source
var BackupCmd = &cobra.Command{ Use: "backup", Short: "Backup files from the local machine to the cloud", PreRunE: func(cmd *cobra.Command, _ []string) error { return checkEnv(cmd.Context()) }, RunE: func(cmd *cobra.Command, _ []string) error { return runRoot(cmd.Context()) }, }
View Source
var InitCmd = &cobra.Command{ Use: "init", Short: "Initialize a new config", RunE: func(cmd *cobra.Command, _ []string) error { return runInit(cmd.Context()) }, }
View Source
var RestoreCmd = &cobra.Command{ Use: "restore", Short: "Restore files from the cloud to the local machine", PreRunE: func(cmd *cobra.Command, _ []string) error { return checkEnv(cmd.Context()) }, RunE: func(cmd *cobra.Command, _ []string) error { return runRestore(cmd.Context()) }, }
View Source
var RootCmd = &cobra.Command{ Use: "csync", Short: "csync", PreRunE: func(cmd *cobra.Command, _ []string) error { return checkEnv(cmd.Context()) }, RunE: func(cmd *cobra.Command, _ []string) error { return runRoot(cmd.Context()) }, Version: fmt.Sprintf(versionFmt, version, commit, date), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.