diff --git a/Cargo.lock b/Cargo.lock index 576a932..9c5f703 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "aa2" -version = "0.9.1" +version = "0.9.2" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -48,7 +48,7 @@ dependencies = [ [[package]] name = "cm2" -version = "0.9.0" +version = "0.9.1" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -57,7 +57,7 @@ dependencies = [ [[package]] name = "di2" -version = "0.8.0" +version = "0.8.1" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -66,7 +66,7 @@ dependencies = [ [[package]] name = "dp2" -version = "0.8.0" +version = "0.8.1" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -108,7 +108,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "le2" -version = "0.9.2" +version = "0.9.3" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -122,7 +122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "pu2" -version = "0.5.1" +version = "0.5.2" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "rmtag2" -version = "0.0.0" +version = "0.0.1" [[package]] name = "serde" @@ -140,7 +140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "st2" -version = "0.9.1" +version = "0.9.2" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -154,11 +154,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "tag2" -version = "0.0.0" +version = "0.0.1" [[package]] name = "tags2" -version = "0.0.0" +version = "0.0.1" [[package]] name = "textwrap" diff --git a/Cargo.toml b/Cargo.toml index e3a2aeb..68abc37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,19 +1,18 @@ [workspace] members = [ - "dp2", - "aa2", - "st2", - "di2", - "cm2", - "pu2", - "le2", - "tag2", - "tags2", - "rmtag2", + "commands/dp2", + "commands/aa2", + "commands/st2", + "commands/di2", + "commands/cm2", + "commands/pu2", + "commands/le2", + "commands/tag2", + "commands/tags2", + "commands/rmtag2", ] exclude = [ "repotools", - "see_instead", ] diff --git a/README.md b/README.md index cca3a5c..ffcf047 100644 --- a/README.md +++ b/README.md @@ -89,17 +89,38 @@ The name comes from "l" for "log" and "e" for the `-e` flag. ## Installation -Precompiled binaries will be provided in the future, but for now you'll need -to have the Rust toolchain installed. If you don't have the Rust toolchain -installed already, head over to https://rustup.rs/ and follow the instructions -there and then come back here. +Precompiled binaries will be provided in the future, +but for now you'll need to build from source. -Once you have the Rust toolchain installed, simply run: +### Building from source + +In order to build from source, you need to have the Rust toolchain installed. +If you don't have the Rust toolchain installed already, head on over to +https://rustup.rs/ and follow the instructions there. Then come back here +once you've done that. + +With the Rust toolchain installed, simply run: ```bash cargo install repotools ``` +This will build and install all of the repotools command utilities. + +#### Building and installing only some of the repotools command utilites + +If you only wish to build and install some of the repotools command utilities +rather than all of them, you can do so by making use of the feature flags. + +With the Rust toolchain installed (see above), run the following command, with +the features list adjusted according to your wishing with regards to which of +the command utilities you would like to build and install: + +```bash +cargo install repotools --no-default-features \ + --features "dp aa st di cm pu le" +``` + ## Star Me on GitHub 🤩 Do you think this project is awesome? I think *you* are awesome! diff --git a/aa2/README.md b/aa2/README.md deleted file mode 100644 index f5e205c..0000000 --- a/aa2/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# aa2 - -[![Crates.io](https://img.shields.io/crates/v/aa2.svg)](https://crates.io/crates/aa2) - -This crate provides the `aa` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `aa` utility individually, run the following -command in your terminal: - -```bash -cargo install aa2 -``` - -## Usage - -### `aa [...]` – add all files in git repository to index, optionally limited to one or more directories - -When you want to stage everything, or everything in certain directories, -for commit, you type `aa` or `aa ...` respectively. - -`aa` is like `git add -A`, only more awesome. diff --git a/aa2/build.rs b/aa2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/aa2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/cm2/README.md b/cm2/README.md deleted file mode 100644 index 30a9781..0000000 --- a/cm2/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# cm2 - -[![Crates.io](https://img.shields.io/crates/v/cm2.svg)](https://crates.io/crates/cm2) - -This crate provides the `cm` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `cm` utility individually, run the following -command in your terminal: - -```bash -cargo install cm2 -``` - -## Usage - -### `cm ` – git commit with message - -When it comes time to commit, you have `cm`. - -`cm` is like `git commit -m`, only more awesome. diff --git a/cm2/build.rs b/cm2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/cm2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/aa2/Cargo.toml b/commands/aa2/Cargo.toml similarity index 91% rename from aa2/Cargo.toml rename to commands/aa2/Cargo.toml index 119f879..1b146c9 100644 --- a/aa2/Cargo.toml +++ b/commands/aa2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "aa2" +publish = false description = "add all files in git repository to index, optionally limited to one or more directories" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/aa2" -version = "0.9.1" +version = "0.9.2" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/aa2/aa2.toml b/commands/aa2/aa2.toml similarity index 100% rename from aa2/aa2.toml rename to commands/aa2/aa2.toml diff --git a/commands/aa2/build.rs b/commands/aa2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/aa2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/aa2/src/cli.yaml b/commands/aa2/src/cli.yaml similarity index 100% rename from aa2/src/cli.yaml rename to commands/aa2/src/cli.yaml diff --git a/aa2/src/main.rs b/commands/aa2/src/main.rs similarity index 100% rename from aa2/src/main.rs rename to commands/aa2/src/main.rs diff --git a/cm2/Cargo.toml b/commands/cm2/Cargo.toml similarity index 90% rename from cm2/Cargo.toml rename to commands/cm2/Cargo.toml index feec363..6bc7510 100644 --- a/cm2/Cargo.toml +++ b/commands/cm2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "cm2" +publish = false description = "git commit with message" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/cm2" -version = "0.9.0" +version = "0.9.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/cm2/build.rs b/commands/cm2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/cm2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/cm2/cm2.toml b/commands/cm2/cm2.toml similarity index 100% rename from cm2/cm2.toml rename to commands/cm2/cm2.toml diff --git a/cm2/src/cli.yaml b/commands/cm2/src/cli.yaml similarity index 100% rename from cm2/src/cli.yaml rename to commands/cm2/src/cli.yaml diff --git a/cm2/src/main.rs b/commands/cm2/src/main.rs similarity index 100% rename from cm2/src/main.rs rename to commands/cm2/src/main.rs diff --git a/di2/Cargo.toml b/commands/di2/Cargo.toml similarity index 91% rename from di2/Cargo.toml rename to commands/di2/Cargo.toml index d3f8420..64d024b 100644 --- a/di2/Cargo.toml +++ b/commands/di2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "di2" +publish = false description = "diff files staged for commit in git repository, optionally limited to a given file or directory" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/di2" -version = "0.8.0" +version = "0.8.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/di2/build.rs b/commands/di2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/di2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/di2/di2.toml b/commands/di2/di2.toml similarity index 100% rename from di2/di2.toml rename to commands/di2/di2.toml diff --git a/di2/src/cli.yaml b/commands/di2/src/cli.yaml similarity index 100% rename from di2/src/cli.yaml rename to commands/di2/src/cli.yaml diff --git a/di2/src/main.rs b/commands/di2/src/main.rs similarity index 100% rename from di2/src/main.rs rename to commands/di2/src/main.rs diff --git a/dp2/Cargo.toml b/commands/dp2/Cargo.toml similarity index 91% rename from dp2/Cargo.toml rename to commands/dp2/Cargo.toml index 542b6cc..16c91eb 100644 --- a/dp2/Cargo.toml +++ b/commands/dp2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "dp2" +publish = false description = "diff files pending staging in git repository, optionally limited to a given file or directory" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/dp2" -version = "0.8.0" +version = "0.8.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/dp2/build.rs b/commands/dp2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/dp2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/dp2/dp2.toml b/commands/dp2/dp2.toml similarity index 100% rename from dp2/dp2.toml rename to commands/dp2/dp2.toml diff --git a/dp2/src/cli.yaml b/commands/dp2/src/cli.yaml similarity index 100% rename from dp2/src/cli.yaml rename to commands/dp2/src/cli.yaml diff --git a/dp2/src/main.rs b/commands/dp2/src/main.rs similarity index 100% rename from dp2/src/main.rs rename to commands/dp2/src/main.rs diff --git a/le2/Cargo.toml b/commands/le2/Cargo.toml similarity index 91% rename from le2/Cargo.toml rename to commands/le2/Cargo.toml index 055f722..8d2c1fd 100644 --- a/le2/Cargo.toml +++ b/commands/le2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "le2" +publish = false description = "number of commits by each author in git repository" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/le2" -version = "0.9.2" +version = "0.9.3" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/le2/build.rs b/commands/le2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/le2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/le2/le2.toml b/commands/le2/le2.toml similarity index 100% rename from le2/le2.toml rename to commands/le2/le2.toml diff --git a/le2/src/cli.yaml b/commands/le2/src/cli.yaml similarity index 100% rename from le2/src/cli.yaml rename to commands/le2/src/cli.yaml diff --git a/le2/src/main.rs b/commands/le2/src/main.rs similarity index 100% rename from le2/src/main.rs rename to commands/le2/src/main.rs diff --git a/pu2/Cargo.toml b/commands/pu2/Cargo.toml similarity index 91% rename from pu2/Cargo.toml rename to commands/pu2/Cargo.toml index 03401bb..c239994 100644 --- a/pu2/Cargo.toml +++ b/commands/pu2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "pu2" +publish = false description = "push commits or tags to remote git repository" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/pu2" -version = "0.5.1" +version = "0.5.2" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/pu2/build.rs b/commands/pu2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/pu2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/pu2/pu2.toml b/commands/pu2/pu2.toml similarity index 100% rename from pu2/pu2.toml rename to commands/pu2/pu2.toml diff --git a/pu2/src/cli.yaml b/commands/pu2/src/cli.yaml similarity index 100% rename from pu2/src/cli.yaml rename to commands/pu2/src/cli.yaml diff --git a/pu2/src/main.rs b/commands/pu2/src/main.rs similarity index 100% rename from pu2/src/main.rs rename to commands/pu2/src/main.rs diff --git a/rmtag2/Cargo.toml b/commands/rmtag2/Cargo.toml similarity index 86% rename from rmtag2/Cargo.toml rename to commands/rmtag2/Cargo.toml index 9a7b6dd..eb3ed67 100644 --- a/rmtag2/Cargo.toml +++ b/commands/rmtag2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "rmtag2" +publish = false description = "TBA" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/rmtag2" -version = "0.0.0" +version = "0.0.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/rmtag2/src/main.rs b/commands/rmtag2/src/main.rs similarity index 100% rename from rmtag2/src/main.rs rename to commands/rmtag2/src/main.rs diff --git a/st2/Cargo.toml b/commands/st2/Cargo.toml similarity index 91% rename from st2/Cargo.toml rename to commands/st2/Cargo.toml index 6a3dbeb..1941736 100644 --- a/st2/Cargo.toml +++ b/commands/st2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "st2" +publish = false description = "status of git repository, optionally limited to one or more files or directories" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/st2" -version = "0.9.1" +version = "0.9.2" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/commands/st2/build.rs b/commands/st2/build.rs new file mode 120000 index 0000000..89dbda2 --- /dev/null +++ b/commands/st2/build.rs @@ -0,0 +1 @@ +../../repotools/build.rs \ No newline at end of file diff --git a/st2/src/cli.yaml b/commands/st2/src/cli.yaml similarity index 100% rename from st2/src/cli.yaml rename to commands/st2/src/cli.yaml diff --git a/st2/src/main.rs b/commands/st2/src/main.rs similarity index 100% rename from st2/src/main.rs rename to commands/st2/src/main.rs diff --git a/st2/st2.toml b/commands/st2/st2.toml similarity index 100% rename from st2/st2.toml rename to commands/st2/st2.toml diff --git a/tag2/Cargo.toml b/commands/tag2/Cargo.toml similarity index 86% rename from tag2/Cargo.toml rename to commands/tag2/Cargo.toml index 34fe141..5921020 100644 --- a/tag2/Cargo.toml +++ b/commands/tag2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "tag2" +publish = false description = "TBA" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/tag2" -version = "0.0.0" +version = "0.0.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/tag2/src/main.rs b/commands/tag2/src/main.rs similarity index 100% rename from tag2/src/main.rs rename to commands/tag2/src/main.rs diff --git a/tags2/Cargo.toml b/commands/tags2/Cargo.toml similarity index 86% rename from tags2/Cargo.toml rename to commands/tags2/Cargo.toml index ce9b70a..f19b026 100644 --- a/tags2/Cargo.toml +++ b/commands/tags2/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "tags2" +publish = false description = "TBA" license = "ISC" -readme = "README.md" repository = "https://github.com/ctsrc/repotools/tree/master/tags2" -version = "0.0.0" +version = "0.0.1" authors = ["Erik Nordstrøm "] edition = "2018" diff --git a/tags2/src/main.rs b/commands/tags2/src/main.rs similarity index 100% rename from tags2/src/main.rs rename to commands/tags2/src/main.rs diff --git a/di2/README.md b/di2/README.md deleted file mode 100644 index 050d884..0000000 --- a/di2/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# di2 - -[![Crates.io](https://img.shields.io/crates/v/di2.svg)](https://crates.io/crates/di2) - -This crate provides the `di` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `di` utility individually, run the following -command in your terminal: - -```bash -cargo install di2 -``` - -## Usage - -### `di [...]` – diff files staged for commit in git repository, optionally limited to one or more files or directories - -Prior to committing, and also now and then while still working on the code, -it is very useful to review what you are about commit, both to ensure that -you are about to commit what you think you are about to commit, and in order to -write useful commit messages that accurately describe the changes. - -`di` shows the diff for the staged changes against HEAD. - -`di` is like `git diff --cached`, only more awesome. diff --git a/di2/build.rs b/di2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/di2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/dp2/README.md b/dp2/README.md deleted file mode 100644 index 9176c87..0000000 --- a/dp2/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# dp2 - -[![Crates.io](https://img.shields.io/crates/v/dp2.svg)](https://crates.io/crates/dp2) - -This crate provides the `dp` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `dp` utility individually, run the following -command in your terminal: - -```bash -cargo install dp2 -``` - -## Usage - -### `dp [...]` – diff files pending staging in git repository, optionally limited to one or more files or directories - -When you look at what changes you want to stage for commit, you type `dp`. - -`dp` is like `git diff`, only more awesome. diff --git a/dp2/build.rs b/dp2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/dp2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/le2/README.md b/le2/README.md deleted file mode 100644 index 8f89b3c..0000000 --- a/le2/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# le2 - -[![Crates.io](https://img.shields.io/crates/v/le2.svg)](https://crates.io/crates/le2) - -This crate provides the `le` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `le` utility individually, run the following -command in your terminal: - -```bash -cargo install le2 -``` - -## Usage - -### `le` – number of commits by each author in git repository - -Among all of the commands, this is the only one that doesn't match -the meaning with its name. I would have named this command as I initially -did; `nc`, if it wasn't for the fact that the netcat command on a lot -of systems is named `nc` already. - -The name comes from "l" for "log" and "e" for the `-e` flag. - -`le` is like `git shortlog -se`, only more awesome. diff --git a/le2/build.rs b/le2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/le2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/pu2/README.md b/pu2/README.md deleted file mode 100644 index 03dc10b..0000000 --- a/pu2/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# pu2 - -[![Crates.io](https://img.shields.io/crates/v/pu2.svg)](https://crates.io/crates/pu2) - -This crate provides the `pu` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `pu` utility individually, run the following -command in your terminal: - -```bash -cargo install pu2 -``` - -## Usage - -### `pu [--tags] [-f] []` – push commits or tags to remote git repository - -Use `pu` to push commits to the remote of the current branch -(or to *origin* if no remote is configured for the current branch). - -Use `pu --tags` to push tags. - -Use `pu -f` to force push commits. - -Use `pu --tags -f` to force push tags. - -For all of the above, optionally specify which repository (`[]`) -to push to, specified either as a named remote or as a URL. - -`pu` is like `git push`, only more awesome. diff --git a/pu2/build.rs b/pu2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/pu2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/repotools/Cargo.lock b/repotools/Cargo.lock index af3495a..f3fbf48 100644 --- a/repotools/Cargo.lock +++ b/repotools/Cargo.lock @@ -77,7 +77,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "repotools" -version = "0.7.0" +version = "0.7.1" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "exec 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/repotools/Cargo.toml b/repotools/Cargo.toml index 56f1ea1..b6d99ef 100644 --- a/repotools/Cargo.toml +++ b/repotools/Cargo.toml @@ -2,39 +2,56 @@ name = "repotools" description = "Short names, big time savings. Repotools is a collection of commands with short but meaningful names, for the git operations you perform most often." license = "ISC" -readme = "README.md" +readme = "../README.md" repository = "https://github.com/ctsrc/repotools" -version = "0.7.0" +version = "0.7.1" authors = ["Erik Nordstrøm "] edition = "2018" [[bin]] name = "dp" path = "src/dp2/main.rs" +required-features = ["dp"] [[bin]] name = "aa" path = "src/aa2/main.rs" +required-features = ["aa"] [[bin]] name = "st" path = "src/st2/main.rs" +required-features = ["st"] [[bin]] name = "di" path = "src/di2/main.rs" +required-features = ["di"] [[bin]] name = "cm" path = "src/cm2/main.rs" +required-features = ["cm"] [[bin]] name = "pu" path = "src/pu2/main.rs" +required-features = ["pu"] [[bin]] name = "le" path = "src/le2/main.rs" +required-features = ["le"] + +[features] +default = ["dp","aa","st","di","cm","pu","le"] +dp = [] +aa = [] +st = [] +di = [] +cm = [] +pu = [] +le = [] [build-dependencies] toml = "0.5.5" diff --git a/repotools/README.md b/repotools/README.md deleted file mode 120000 index 32d46ee..0000000 --- a/repotools/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/repotools/aa2.toml b/repotools/aa2.toml index 8a74111..8547e58 120000 --- a/repotools/aa2.toml +++ b/repotools/aa2.toml @@ -1 +1 @@ -../aa2/Cargo.toml \ No newline at end of file +../commands/aa2/Cargo.toml \ No newline at end of file diff --git a/repotools/cm2.toml b/repotools/cm2.toml index 348cc0a..936b17a 120000 --- a/repotools/cm2.toml +++ b/repotools/cm2.toml @@ -1 +1 @@ -../cm2/Cargo.toml \ No newline at end of file +../commands/cm2/Cargo.toml \ No newline at end of file diff --git a/repotools/di2.toml b/repotools/di2.toml index 8b9bb9d..ccc1945 120000 --- a/repotools/di2.toml +++ b/repotools/di2.toml @@ -1 +1 @@ -../di2/Cargo.toml \ No newline at end of file +../commands/di2/Cargo.toml \ No newline at end of file diff --git a/repotools/dp2.toml b/repotools/dp2.toml index baadca4..ced645c 120000 --- a/repotools/dp2.toml +++ b/repotools/dp2.toml @@ -1 +1 @@ -../dp2/Cargo.toml \ No newline at end of file +../commands/dp2/Cargo.toml \ No newline at end of file diff --git a/repotools/le2.toml b/repotools/le2.toml index c7340f3..4d41c88 120000 --- a/repotools/le2.toml +++ b/repotools/le2.toml @@ -1 +1 @@ -../le2/Cargo.toml \ No newline at end of file +../commands/le2/Cargo.toml \ No newline at end of file diff --git a/repotools/pu2.toml b/repotools/pu2.toml index 533adf8..1c991e8 120000 --- a/repotools/pu2.toml +++ b/repotools/pu2.toml @@ -1 +1 @@ -../pu2/Cargo.toml \ No newline at end of file +../commands/pu2/Cargo.toml \ No newline at end of file diff --git a/repotools/src/aa2 b/repotools/src/aa2 index 90aa846..2d80104 120000 --- a/repotools/src/aa2 +++ b/repotools/src/aa2 @@ -1 +1 @@ -../../aa2/src/ \ No newline at end of file +../../commands/aa2/src \ No newline at end of file diff --git a/repotools/src/cm2 b/repotools/src/cm2 index a94b3a9..6582116 120000 --- a/repotools/src/cm2 +++ b/repotools/src/cm2 @@ -1 +1 @@ -../../cm2/src/ \ No newline at end of file +../../commands/cm2/src \ No newline at end of file diff --git a/repotools/src/di2 b/repotools/src/di2 index 8c1ae0a..a176ecb 120000 --- a/repotools/src/di2 +++ b/repotools/src/di2 @@ -1 +1 @@ -../../di2/src/ \ No newline at end of file +../../commands/di2/src \ No newline at end of file diff --git a/repotools/src/dp2 b/repotools/src/dp2 index 2a5890b..df9b8d7 120000 --- a/repotools/src/dp2 +++ b/repotools/src/dp2 @@ -1 +1 @@ -../../dp2/src/ \ No newline at end of file +../../commands/dp2/src \ No newline at end of file diff --git a/repotools/src/le2 b/repotools/src/le2 index 662a3cd..145723a 120000 --- a/repotools/src/le2 +++ b/repotools/src/le2 @@ -1 +1 @@ -../../le2/src/ \ No newline at end of file +../../commands/le2/src \ No newline at end of file diff --git a/repotools/src/pu2 b/repotools/src/pu2 index 28d99c9..815a985 120000 --- a/repotools/src/pu2 +++ b/repotools/src/pu2 @@ -1 +1 @@ -../../pu2/src/ \ No newline at end of file +../../commands/pu2/src \ No newline at end of file diff --git a/repotools/src/st2 b/repotools/src/st2 index a97c42e..c9d3a61 120000 --- a/repotools/src/st2 +++ b/repotools/src/st2 @@ -1 +1 @@ -../../st2/src/ \ No newline at end of file +../../commands/st2/src \ No newline at end of file diff --git a/repotools/st2.toml b/repotools/st2.toml index 3231ba1..263b0bd 120000 --- a/repotools/st2.toml +++ b/repotools/st2.toml @@ -1 +1 @@ -../st2/Cargo.toml \ No newline at end of file +../commands/st2/Cargo.toml \ No newline at end of file diff --git a/rmtag2/README.md b/rmtag2/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/see_instead/cm/Cargo.lock b/see_instead/cm/Cargo.lock deleted file mode 100644 index bc8602a..0000000 --- a/see_instead/cm/Cargo.lock +++ /dev/null @@ -1,6 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "cm" -version = "0.0.2" - diff --git a/see_instead/cm/Cargo.toml b/see_instead/cm/Cargo.toml deleted file mode 100644 index 841e552..0000000 --- a/see_instead/cm/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "cm" -description = "Use crate cm2 instead." -license = "ISC" -readme = "README.md" -version = "0.0.2" -authors = ["Erik Nordstrøm "] -edition = "2018" - -[dependencies] diff --git a/see_instead/cm/README.md b/see_instead/cm/README.md deleted file mode 100644 index ae3139f..0000000 --- a/see_instead/cm/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### About This Package - -Use crate [cm2](https://crates.io/crates/cm2) instead. diff --git a/see_instead/cm/src/lib.rs b/see_instead/cm/src/lib.rs deleted file mode 100644 index e69de29..0000000 diff --git a/see_instead/le/Cargo.lock b/see_instead/le/Cargo.lock deleted file mode 100644 index a912e9f..0000000 --- a/see_instead/le/Cargo.lock +++ /dev/null @@ -1,6 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "le" -version = "0.0.2" - diff --git a/see_instead/le/Cargo.toml b/see_instead/le/Cargo.toml deleted file mode 100644 index 194b262..0000000 --- a/see_instead/le/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "le" -description = "Use crate le2 instead." -license = "ISC" -readme = "README.md" -version = "0.0.2" -authors = ["Erik Nordstrøm "] -edition = "2018" - -[dependencies] diff --git a/see_instead/le/README.md b/see_instead/le/README.md deleted file mode 100644 index c754940..0000000 --- a/see_instead/le/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### About This Package - -Use crate [le2](https://crates.io/crates/le2) instead. diff --git a/see_instead/le/src/lib.rs b/see_instead/le/src/lib.rs deleted file mode 100644 index e69de29..0000000 diff --git a/see_instead/pu/Cargo.lock b/see_instead/pu/Cargo.lock deleted file mode 100644 index 2b02895..0000000 --- a/see_instead/pu/Cargo.lock +++ /dev/null @@ -1,6 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "pu" -version = "0.0.2" - diff --git a/see_instead/pu/Cargo.toml b/see_instead/pu/Cargo.toml deleted file mode 100644 index 0c1cbd8..0000000 --- a/see_instead/pu/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "pu" -description = "Use crate pu2 instead." -license = "ISC" -readme = "README.md" -version = "0.0.2" -authors = ["Erik Nordstrøm "] -edition = "2018" - -[dependencies] diff --git a/see_instead/pu/README.md b/see_instead/pu/README.md deleted file mode 100644 index 5b2fa1a..0000000 --- a/see_instead/pu/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### About This Package - -Use crate [pu2](https://crates.io/crates/pu2) instead. diff --git a/see_instead/pu/src/lib.rs b/see_instead/pu/src/lib.rs deleted file mode 100644 index e69de29..0000000 diff --git a/st2/README.md b/st2/README.md deleted file mode 100644 index f54524e..0000000 --- a/st2/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# st2 - -[![Crates.io](https://img.shields.io/crates/v/st2.svg)](https://crates.io/crates/st2) - -This crate provides the `st` command, and is part of the -[repotools](https://crates.io/crates/repotools) set of utilities. - -You can install all of the repotools utilites by running -the following command in your terminal: - -```bash -cargo install repotools -``` - -If you want to install only some of them, you can install them -individually. Refer to the [repotools](https://crates.io/crates/repotools) -for the full list of utilities and links to their individual crates. - -To install `st` utility individually, run the following -command in your terminal: - -```bash -cargo install st2 -``` - -## Usage - -### `st [...]` – status of git repository, optionally limited to one or more files or directories - -My workflow usually goes, write some code, stage some code, research something, -test the changes, write some code, stage some code, and so on. - -Every now and then between writing, staging, etc, I look at what -I've staged for commit so far, and what has not yet been staged. -For the high-level bird's eye view of that there is `st`. - -`st` is like `git status`, only more awesome. diff --git a/st2/build.rs b/st2/build.rs deleted file mode 120000 index c5c1abf..0000000 --- a/st2/build.rs +++ /dev/null @@ -1 +0,0 @@ -../repotools/build.rs \ No newline at end of file diff --git a/tag2/README.md b/tag2/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/tags2/README.md b/tags2/README.md deleted file mode 100644 index e69de29..0000000