Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "olake", Short: "root command", RunE: func(cmd *cobra.Command, args []string) error { if !noSave { viper.Set(constants.ConfigFolder, utils.Ternary(configPath == "not-set", filepath.Dir(destinationConfigPath), filepath.Dir(configPath))) } if encryptionKey != "" { viper.Set(constants.EncryptionKey, encryptionKey) } logger.Init() telemetry.Init() if len(args) == 0 { return cmd.Help() } if ok := utils.IsValidSubcommand(commands, args[0]); !ok { return fmt.Errorf("'%s' is an invalid command. Use 'olake --help' to display usage guide", args[0]) } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.