aboutsummaryrefslogtreecommitdiff
path: root/ticket
diff options
context:
space:
mode:
authorMichael Gattozzi <mgattozzi@gmail.com>2019-11-15 10:21:01 -0500
committerMichael Gattozzi <mgattozzi@gmail.com>2019-11-15 10:21:01 -0500
commite15390570f0eb5c2f49a32111915ec0c790b07af (patch)
treef0b1f87a7e9d14918724a9470d4894c52aabccc3 /ticket
Initialize the dev-suite repo
This commit initializes the repo with a stubbed out ticket tool and the rustfmt preferences for the repo. The idea is that dev-suite will allow remote collaboration by giving a lot of the functionality that GitHub and other services have, but have all of the data live alongside the repo and it's history. This makes choosing a different service easier and lets people who don't want to use the service have that option.
Diffstat (limited to 'ticket')
-rw-r--r--ticket/Cargo.toml12
-rw-r--r--ticket/rust-toolchain1
-rw-r--r--ticket/src/main.rs21
3 files changed, 34 insertions, 0 deletions
diff --git a/ticket/Cargo.toml b/ticket/Cargo.toml
new file mode 100644
index 0000000..d811935
--- /dev/null
+++ b/ticket/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "ticket"
+version = "0.1.0"
+authors = ["Michael Gattozzi <mgattozzi@gmail.com>"]
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+paw = "*"
+structopt = { version = "*", features = ["paw"] }
+anyhow = "*"
diff --git a/ticket/rust-toolchain b/ticket/rust-toolchain
new file mode 100644
index 0000000..5edffce
--- /dev/null
+++ b/ticket/rust-toolchain
@@ -0,0 +1 @@
+1.39.0
diff --git a/ticket/src/main.rs b/ticket/src/main.rs
new file mode 100644
index 0000000..bdd936e
--- /dev/null
+++ b/ticket/src/main.rs
@@ -0,0 +1,21 @@
+use anyhow::Result;
+
+#[derive(structopt::StructOpt)]
+enum Args {
+ /// Initialize the repo to use ticket
+ Init,
+}
+
+#[paw::main]
+fn main(args: Args) {
+ if let Err(e) = match args {
+ Args::Init => init(),
+ } {
+ eprintln!("{}", e);
+ std::process::exit(1);
+ }
+}
+
+fn init() -> Result<()> {
+ Ok(())
+}