Documentation
¶
Index ¶
- Variables
- func AddCommand(_ *cobra.Command, args []string) error
- func CatCommand(_ *cobra.Command, args []string) error
- func CleanCommand(_ *cobra.Command, args []string) error
- func CompletionCommand(_ *cobra.Command, _ []string) error
- func DecryptCommand(_ *cobra.Command, args []string) error
- func DocsCommand(_ *cobra.Command, _ []string) error
- func EditCommand(_ *cobra.Command, args []string) error
- func EntrypointCommand(cmd *cobra.Command, args []string) (rerr error)
- func Execute()
- func ListCommand(_ *cobra.Command, _ []string)
- func RemoveCommand(_ *cobra.Command, args []string) error
- func RotateCommand(_ *cobra.Command, args []string) error
- func UpdateKeysCommand(_ *cobra.Command, args []string) error
- func VersionCommand(_ *cobra.Command, _ []string)
Constants ¶
This section is empty.
Variables ¶
var BuildCommit string
BuildCommit (updated by main)
var BuildDate string
BuildDate (updated by main)
var BuildVersion string
BuildVersion (updated by main)
var RootCmd = &cobra.Command{
Use: "sopstool",
Short: "Wrapper around sops for multiple files",
Long: `sopstool
sops wrapper supporting multiple files and helper commands.`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func AddCommand ¶
AddCommand the command for the add command
func CatCommand ¶
CatCommand prints a file to stdout
func CleanCommand ¶
CleanCommand cleans up files
func CompletionCommand ¶
CompletionCommand the command for the add command
func DecryptCommand ¶
DecryptCommand decrypts files
func DocsCommand ¶
DocsCommand the command for the add command
func EntrypointCommand ¶
EntrypointCommand the command for the add command Note the named return parameter, it is used to tack on errors during the deferred encrypted file cleanup.
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ListCommand ¶
ListCommand the command for the list command
func RemoveCommand ¶
RemoveCommand the command for the add command
func RotateCommand ¶
RotateCommand Rotates up files
func UpdateKeysCommand ¶ added in v1.1.0
UpdateKeysCommand updates recipients keys
func VersionCommand ¶
VersionCommand prints the version
Types ¶
This section is empty.