github.com/everdrone/grab@v0.1.7-0.20230416223925-40674b995521/cmd/config.go (about)

     1  package cmd
     2  
     3  import (
     4  	"github.com/spf13/cobra"
     5  )
     6  
     7  var ConfigCmd = &cobra.Command{
     8  	Use:   "config",
     9  	Short: "Manage the configuration file",
    10  	Example: `  Check for errors in the configuration file:
    11      grab config check -c ../grab.hcl
    12  
    13    Generate the default configuration:
    14      grab config generate
    15  
    16    Print the path of the closest config file:
    17      grab config find`,
    18  }
    19  
    20  func init() {
    21  	RootCmd.AddCommand(ConfigCmd)
    22  }