style (cli): Clean up 'key-code' cmd

* Rename 'key-code' -> 'key' (better grammar for the sub cmds)
* Rename 'key-gen' -> 'gen'

Now the 'key' cmds are 'sparkd key gen/encrypt/decrypt'
This commit is contained in:
John Colvin committed 2023-03-31 05:00:07 +00:00
1 parent 978a1e8566
commit fd3de056c1
3 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
#include "server/sparkd/cmds/AdminReport.h"
#include "server/sparkd/cmds/Benchmark.h"
#include "server/sparkd/cmds/ConfigCmd.h"
#include "server/sparkd/cmds/KeyCode.h"
#include "server/sparkd/cmds/KeyCmd.h"
#include "server/sparkd/cmds/Md.h"
#include "server/sparkd/cmds/QuickTest.h"
#include "server/sparkd/cmds/Run.h"
@@ -32,7 +32,7 @@ int main(int argc, char **argv) {
app.add_subcommand(CLI::App_p(new cmds::QuickTest()));
app.add_subcommand(CLI::App_p(new cmds::Run()));
app.add_subcommand(CLI::App_p(new cmds::Spartan()));
app.add_subcommand((CLI::App_p(new cmds::KeyCode())));
app.add_subcommand(CLI::App_p(new cmds::KeyCmd()));
app.add_subcommand(CLI::App_p(new cmds::Web()));
app.add_subcommand(
"test", "Run unit test(s)"); // so this shows up in help