Documentation ¶
Overview ¶
Copyright © 2023 Farzaan Shaikh
This code is licensed under the Apache License 2.0. For more information, please see the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigCmd = &cobra.Command{ Use: "config", Short: "Configure the CLI", Long: `Adds configuration for the CLI. These configs are directory level and not system-wide. Changing config file directly might break things, best use this command.`, Run: func(cmd *cobra.Command, args []string) { if viper.Get(cmdutil.VersionKey) == nil { cobra.CheckErr(errors.New("valid config file not found, try running 'reman init'")) } if err := authorConfig(); err != nil { cobra.CheckErr(err) } viper.WriteConfig() }, }
configCmd represents the config command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.