Skip to content

Commit 00d8ca9

Browse files
committed
[cli] adds the initial node command
1 parent a1e0a10 commit 00d8ca9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

app/client/cli/node.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cli
2+
3+
import "github.com/spf13/cobra"
4+
5+
func init() {
6+
nodeCmd := NewNodeCommand()
7+
rootCmd.AddCommand(nodeCmd)
8+
}
9+
10+
func NewNodeCommand() *cobra.Command {
11+
cmd := &cobra.Command{
12+
Use: "Node",
13+
Short: "Commands related to node management and operations",
14+
Aliases: []string{"node", "n"},
15+
}
16+
17+
return cmd
18+
}

0 commit comments

Comments
 (0)