Skip to content

Commit

Permalink
chore: add commands to implement
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Sep 30, 2022
1 parent 86e29e0 commit 3a1d3d3
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cmd/clean.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package cmd

import (
"log"

"github.com/spf13/cobra"
)

var (
cleanCmd = &cobra.Command{
Use: "clean",
Short: "Cleans all orphan configurations",
RunE: clean,
Example: `TODO: clean command example`,
}
)

func init() {
rootCmd.AddCommand(cleanCmd)
}

func clean(cmd *cobra.Command, args []string) error {
log.Panic("missing implementation")
return nil
}
25 changes: 25 additions & 0 deletions cmd/get.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package cmd

import (
"log"

"github.com/spf13/cobra"
)

var (
getCmd = &cobra.Command{
Use: "get",
Short: "Gets given configuration from store",
RunE: get,
Example: `TODO: get command example`,
}
)

func init() {
rootCmd.AddCommand(getCmd)
}

func get(cmd *cobra.Command, args []string) error {
log.Panic("missing implementation")
return nil
}

0 comments on commit 3a1d3d3

Please sign in to comment.