Skip to content

Commit

Permalink
fixup! feat(cli): Add add and list applications commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoura committed Jul 18, 2024
1 parent 8f9d255 commit 022a767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cmd/cartesi-rollups-cli/root/app/add/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package add

import (
"fmt"
"log/slog"
"os"

Expand Down Expand Up @@ -115,4 +116,5 @@ func run(cmd *cobra.Command, args []string) {

err := cmdcommom.Database.InsertApplication(ctx, &application)
cobra.CheckErr(err)
fmt.Printf("Application %v successfully added\n", application.ContractAddress)
}
6 changes: 3 additions & 3 deletions cmd/cartesi-rollups-cli/root/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
)

var Cmd = &cobra.Command{
Use: "app",
Short: "Application management related commands",
PreRun: common.Setup,
Use: "app",
Short: "Application management related commands",
PersistentPreRun: common.Setup,
}

func init() {
Expand Down

0 comments on commit 022a767

Please sign in to comment.