aboutsummaryrefslogtreecommitdiff
path: root/apps/cassiopeia/src/meta.rs
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-11 18:35:07 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-21 05:19:49 +0100
commitfc7b4109c75299a2ee8debaccc73721338946cfa (patch)
treef9553d6b42f02629e7289d63b28a68aa68fa3ad4 /apps/cassiopeia/src/meta.rs
parentd40e014aebc778939ae8d9afae225b7d4f6cc949 (diff)
cassiopeia: changing project structure and adding CLI parsing
Diffstat (limited to '')
-rw-r--r--apps/cassiopeia/src/meta.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/cassiopeia/src/meta.rs b/apps/cassiopeia/src/meta.rs
new file mode 100644
index 000000000000..835444f9bdc5
--- /dev/null
+++ b/apps/cassiopeia/src/meta.rs
@@ -0,0 +1,34 @@
+//! Metadata and strings for this application
+// TODO: translate this
+
+pub const NAME: &'static str = env!("CARGO_PKG_NAME");
+pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
+pub const AUTHOR: &'static str = env!("CARGO_PKG_AUTHORS");
+pub const ABOUT: &'static str = env!("CARGO_PKG_DESCRIPTION");
+
+pub const ARG_FILE: &'static str = "CASS_FILE";
+pub const ARG_FILE_ABOUT: &'static str = "Provide a .cass file to operate on";
+
+pub const CMD_START: &'static str = "start";
+pub const CMD_START_ABOUT: &'static str = "Start a work session";
+
+pub const CMD_STOP: &'static str = "stop";
+pub const CMD_STOP_ABOUT: &'static str = "Stop the current work session";
+
+pub const ARG_ROUNDING: &'static str = "CASS_ROUNDING";
+pub const ARG_ROUNDING_ABOUT: &'static str = "Disable the (default) 15 minute rounding period";
+
+pub const CMD_INVOICE: &'static str = "invoice";
+pub const CMD_INVOICE_ABOUT: &'static str = "Create an invoice";
+
+pub const ARG_CLIENT: &'static str = "CLIENT";
+pub const ARG_CLIENT_ABOUT: &'static str =
+ "Provide the name of the current client for invoice generation";
+
+pub const ARG_PROJECT: &'static str = "PROJECT";
+pub const ARG_PROJECT_ABOUT: &'static str =
+ "Provide the name of the current project for invoice generation";
+
+pub const ARG_GEN_YAML: &'static str = "GEN_YAML";
+pub const ARG_GEN_YAML_ABOUT: &'static str =
+ "Specify whether to generate a .yml invoice configuration";