Skip to content

Commit

Permalink
Update user guide (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jun 28, 2017
1 parent 1de064d commit 60ed8f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions root.go
Expand Up @@ -13,6 +13,7 @@ func NewCmdStash(version string) *cobra.Command {
var rootCmd = &cobra.Command{
Use: "stash",
Short: `Stash by AppsCode - Backup your Kubernetes Volumes`,
Long: `Stash is a Kubernetes operator for restic. For more information, visit here: https://github.com/appscode/stash/tree/master/docs`,
PersistentPreRun: func(c *cobra.Command, args []string) {
c.Flags().VisitAll(func(flag *pflag.Flag) {
log.Printf("FLAG: --%s=%q", flag.Name, flag.Value)
Expand Down
2 changes: 1 addition & 1 deletion run.go
Expand Up @@ -83,7 +83,7 @@ func NewCmdRun(version string) *cobra.Command {
cmd.Flags().StringVar(&kubeconfigPath, "kubeconfig", kubeconfigPath, "Path to kubeconfig file with authorization information (the master location is set by the master flag).")
cmd.Flags().StringVar(&address, "address", address, "Address to listen on for web interface and telemetry.")
cmd.Flags().StringVar(&scratchDir, "scratch-dir", scratchDir, "Directory used to store temporary files. Use an `emptyDir` in Kubernetes.")
cmd.Flags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send analytical event to Google Analytics")
cmd.Flags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send analytical events to Google Analytics")

return cmd
}
2 changes: 1 addition & 1 deletion schedule.go
Expand Up @@ -81,6 +81,6 @@ func NewCmdSchedule(version string) *cobra.Command {
cmd.Flags().StringVar(&opt.PodLabelsPath, "pod-labels-path", opt.PodLabelsPath, "Path to pod labels file mounted via Kubernetes Downward api")

// Analytics flags
cmd.Flags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send analytical event to Google Analytics")
cmd.Flags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send analytical events to Google Analytics")
return cmd
}

0 comments on commit 60ed8f7

Please sign in to comment.