config

package
v0.0.0-...-544938e Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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