rusty_gum/app_commands/
mod.rs1mod choose;
2pub use choose::exec_choose;
3use choose::Choose;
4
5use structopt::StructOpt;
6
7#[derive(Debug, StructOpt)]
8#[structopt(name = "RustyGum", about = "A tool for rusty shell scripts")]
9pub struct RGApp {
10 #[structopt(subcommand)]
11 pub cmd: Subcommands,
12}
13
14#[derive(Debug, StructOpt)]
15pub enum Subcommands {
16 Choose(Choose),
17 }
27
28#[derive(Debug, StructOpt)]
29#[structopt(about = "Ask a user to confirm an action")]
30pub struct Confirm {}
31
32#[derive(Debug, StructOpt)]
33#[structopt(about = "Filter from a list of items")]
34pub struct Filter {}
35
36#[derive(Debug, StructOpt)]
37#[structopt(about = "Format some text for pretty output")]
38pub struct Format {}
39
40#[derive(Debug, StructOpt)]
41#[structopt(about = "Prompt for single line input")]
42pub struct Input {}
43
44#[derive(Debug, StructOpt)]
45#[structopt(about = "Join text horizontally or vertically")]
46pub struct Join {}
47
48#[derive(Debug, StructOpt)]
49#[structopt(about = "Show a spinner while processing a command")]
50pub struct Spin {}
51
52#[derive(Debug, StructOpt)]
53#[structopt(about = "Apply colors, borders & spacing to text")]
54pub struct Style {}
55
56#[derive(Debug, StructOpt)]
57#[structopt(about = "Prompt the user for multi-line input")]
58pub struct Write {}