-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package client | ||
|
||
import "github.com/desertbit/grumble" | ||
|
||
func Register(app *grumble.App) { | ||
app.AddCommand(&grumble.Command{ | ||
Name: "put", | ||
Help: "put data", | ||
Run: putData, | ||
Check failure on line 9 in cmd/client/app.go GitHub Actions / build (1.18)
Check failure on line 9 in cmd/client/app.go GitHub Actions / build (1.19)
|
||
Args: func(a *grumble.Args) { | ||
a.String("key", "key", grumble.Default("")) | ||
a.String("value", "value", grumble.Default("")) | ||
}, | ||
}) | ||
|
||
app.AddCommand(&grumble.Command{ | ||
Name: "get", | ||
Help: "get data", | ||
Run: getData, | ||
Check failure on line 19 in cmd/client/app.go GitHub Actions / build (1.18)
Check failure on line 19 in cmd/client/app.go GitHub Actions / build (1.19)
|
||
Args: func(a *grumble.Args) { | ||
a.String("key", "key", grumble.Default("")) | ||
}, | ||
}) | ||
|
||
app.AddCommand(&grumble.Command{ | ||
Name: "delete", | ||
Help: "delete key", | ||
Run: deleteKey, | ||
Check failure on line 28 in cmd/client/app.go GitHub Actions / build (1.18)
Check failure on line 28 in cmd/client/app.go GitHub Actions / build (1.19)
|
||
Args: func(a *grumble.Args) { | ||
a.String("key", "key", grumble.Default("")) | ||
}, | ||
}) | ||
|
||
app.AddCommand(&grumble.Command{ | ||
Name: "keys", | ||
Help: "list keys", | ||
Run: getKeys, | ||
Check failure on line 37 in cmd/client/app.go GitHub Actions / build (1.18)
Check failure on line 37 in cmd/client/app.go GitHub Actions / build (1.19)
|
||
}) | ||
} |