refactor: updated cmd command funcs
This commit is contained in:
parent
a1a9c6407f
commit
1413312893
6 changed files with 63 additions and 1 deletions
|
|
@ -1,7 +1,19 @@
|
|||
package cmd
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
import (
|
||||
"git.towk2.me/towk/configurator/pkg/util"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var downloadCmd = cobra.Command{
|
||||
Use: "download",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
util.MakeRequest()
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(&downloadCmd)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue