diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-03-29 20:01:11 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-06-13 17:20:37 -0700 |
| commit | 962d03ca2893c7ca78f2beb497633190575a148a (patch) | |
| tree | 2722b795f1dfe385cf1e1ec16c5cf5839abea6bb /users/fcuny/exp/buckit/delete.go | |
| parent | git: ignore the generated binary buckit (diff) | |
| download | infra-962d03ca2893c7ca78f2beb497633190575a148a.tar.gz | |
add stub commands for buckit
Add the stub commands for the binary. Each command will be in its own
file (with the exception of delete/un-delete). This will make it easier
to navigate the code.
We use `github/urfave/cli` for generating the sub commands, as the
module is well documented and easy to use.
Diffstat (limited to 'users/fcuny/exp/buckit/delete.go')
| -rw-r--r-- | users/fcuny/exp/buckit/delete.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/users/fcuny/exp/buckit/delete.go b/users/fcuny/exp/buckit/delete.go new file mode 100644 index 0000000..6e504a9 --- /dev/null +++ b/users/fcuny/exp/buckit/delete.go @@ -0,0 +1,27 @@ +package main + +import ( + "github.com/urfave/cli/v2" +) + +var deleteCmd = &cli.Command{ + Name: "delete", + Usage: "Delete a version of a file within a namespace", + Action: deleteAction, + ArgsUsage: "<namespace> <file> <version>", +} + +var undeleteCmd = &cli.Command{ + Name: "undelete", + Usage: "Un-delete a version of a file within a namespace", + Action: undeleteAction, + ArgsUsage: "<namespace> <file> <version>", +} + +func deleteAction(ctx *cli.Context) error { + return nil +} + +func undeleteAction(ctx *cli.Context) error { + return nil +} |
