cmd

package
v0.0.0-...-541f7c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const Version = "0.1.6"

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "gist",
	Short:         "gist editor",
	Long:          "gist - A simple gist editor for CLI",
	SilenceUsage:  true,
	SilenceErrors: true,
	Run: func(cmd *cobra.Command, args []string) {
		if showVersion {
			fmt.Printf("version %s/%s\n", Version, runtime.Version())
			return
		}
		if cacheClear {
			gist.NewCache().Clear()
			return
		}
		cmd.Usage()
	},
}

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL