From e15390570f0eb5c2f49a32111915ec0c790b07af Mon Sep 17 00:00:00 2001 From: Michael Gattozzi Date: Fri, 15 Nov 2019 10:21:01 -0500 Subject: 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. --- ticket/Cargo.toml | 12 ++++++++++++ ticket/rust-toolchain | 1 + ticket/src/main.rs | 21 +++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 ticket/Cargo.toml create mode 100644 ticket/rust-toolchain create mode 100644 ticket/src/main.rs (limited to 'ticket') 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 "] +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(()) +} -- cgit v1.2.3