Skip to content

Commit db8d8d6

Browse files
dylanlottred-0ne
authored andcommitted
[Persistence] Adds node subcommand to CLI (#935)
1 parent c67fa14 commit db8d8d6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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)