Skip to content

Commit

Permalink
cmd: multiple improvements and ASCI art
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Sep 29, 2021
1 parent 6281d44 commit f98b58f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/celestia/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ func init() {

var fullCmd = &cobra.Command{
Use: "full [subcommand]",
Args: cobra.NoArgs,
}
1 change: 1 addition & 0 deletions cmd/celestia/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ func init() {

var lightCmd = &cobra.Command{
Use: "light [subcommand]",
Args: cobra.NoArgs,
}
7 changes: 7 additions & 0 deletions cmd/celestia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ func run() error {

var rootCmd = &cobra.Command{
Use: "celestia [subcommand]",
Short: `
/ ____/__ / /__ _____/ /_(_)___ _
/ / / _ \/ / _ \/ ___/ __/ / __ /
/ /___/ __/ / __(__ ) /_/ / /_/ /
\____/\___/_/\___/____/\__/_/\__,_/
`,
Args: cobra.NoArgs,
}
3 changes: 2 additions & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ func Init(repoName string, tp node.Type) *cobra.Command {

const cfgName = "config"
cmd := &cobra.Command{
Use: "init [subcommand]",
Use: "init",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
cfgF := cmd.Flag(cfgName).Value
repo := cmd.Flag(repoName).Value.String()
Expand Down

0 comments on commit f98b58f

Please sign in to comment.