Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildVersion = "v0.1.0-dev" BuildCommit = "" BuildDate = "" )
current build info
View Source
var RootCmd = &cobra.Command{ Use: "krypt [flags] command", Short: "Encrypt or Decrypt files", Long: `Encrypt or Decrypt files with various ciphers`, PersistentPreRun: persistentPreRun, Run: runRoot, Hidden: true, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func VerifyExactFileArgs ¶
func VerifyExactFileArgs(n int) cobra.PositionalArgs
VerifyExactFileArgs returns an error if there are not exactly N args.
func VerifyMinimumNFileArgs ¶
func VerifyMinimumNFileArgs(n int) cobra.PositionalArgs
VerifyMinimumNFileArgs returns an error if there is not at least N args.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.