Skip to content

Commit

Permalink
Update root.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bishal7679 committed May 15, 2023
1 parent 4b7302e commit 985f0be
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,10 @@ import (
// rootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "ksapify",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
Short: "Multi-Featured Light Kubernetes command-line tool",
Long: `A Multi-Featured Light Kubernetes command-line tool which can interact with k8s api-server and perform operations`,
}

// 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 Execute() {
err := RootCmd.Execute()
if err != nil {
Expand All @@ -39,14 +29,6 @@ func Execute() {
}

func init() {
// Here you will define your flags and configuration settings.
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.

// rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.ksapify.yaml)")

// Cobra also supports local flags, which will only run
// when this action is called directly.
RootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
RootCmd.AddCommand(get.GetobjectCmd)
RootCmd.AddCommand(create.CreateobjectCmd)
Expand Down

0 comments on commit 985f0be

Please sign in to comment.