})().with_context(|| format!("read {} {:?}", P::S::WHAT, &filename))?
}
-macro_rules! ordinary_subcmd {
+macro_rules! inventory_subcmd {
{$verb:expr, $help:expr $(,)?} => {
inventory::submit!{Subcommand {
verb: $verb,
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"list-games",
"List games",
}
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"reset",
"Reset the state of the game table",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"set-link",
"Set one of the info links visible from within the game",
}
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"join-game",
"Join a game or reset access token (creating or updating account)",
}
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"leave-game",
"Leave a game",
}
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"delete-game",
"Delete a game (throwing all the players out of it)",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"library-list",
"List pieces in the shape libraries",
}
exit(exitcode);
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"library-add",
"Add pieces from the shape libraries",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"list-pieces",
"List pieces in the game",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"command-json",
"run ad-hoc management command(s) (JSON)",
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"command-ron",
"run ad-hoc management command(s) (Rusty Object Notation)",
}
Ok(())
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"alter-game-json",
"run an ad-hoc AlterGame command (JSON)",
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"alter-game-ron",
"run an ad-hoc AlterGame command (Rusty Object Notation)",
}
writeln!(out, "{}", bundle)?;
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"upload-bundle",
"Upload a bundle",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"list-bundles",
"List bundles",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"download-bundle",
"download bundle",
}
clear_game(&ma, &mut chan)?;
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"clear-game",
"clear the table and clear out all bundles",
}
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"list-accounts",
"List accounts in your account scope",
}
tresps.join().expect("collect responses copy");
}
- ordinary_subcmd!{
+ inventory_subcmd!{
SSH_PROXY_SUBCMD,
"connect to management channel and copy raw message data back and forth",
suppress_selectaccount: true,
}
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"set-ssh-keys",
"set SSH keys for remote management access authentication",
}
out.flush()?;
}
- ordinary_subcmd!{
+ inventory_subcmd!{
"list-ssh-keys",
"set SSH keys for remote management access authentication",
}