Skip to content

Commit

Permalink
Add feature flags allowing selection of which commands to build and i…
Browse files Browse the repository at this point in the history
…nstall. With this we no longer need to provide individual crates for each of the commands, and so we stop doing that.
  • Loading branch information
ctsrc committed Nov 17, 2019
1 parent e95b4e4 commit e412753
Show file tree
Hide file tree
Showing 90 changed files with 107 additions and 378 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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",
]
31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
33 changes: 0 additions & 33 deletions aa2/README.md

This file was deleted.

1 change: 0 additions & 1 deletion aa2/build.rs

This file was deleted.

32 changes: 0 additions & 32 deletions cm2/README.md

This file was deleted.

1 change: 0 additions & 1 deletion cm2/build.rs

This file was deleted.

4 changes: 2 additions & 2 deletions aa2/Cargo.toml → commands/aa2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions commands/aa2/build.rs
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions cm2/Cargo.toml → commands/cm2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/cm2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions di2/Cargo.toml → commands/di2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/di2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions dp2/Cargo.toml → commands/dp2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/dp2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions le2/Cargo.toml → commands/le2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/le2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pu2/Cargo.toml → commands/pu2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/pu2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rmtag2/Cargo.toml → commands/rmtag2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions st2/Cargo.toml → commands/st2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
1 change: 1 addition & 0 deletions commands/st2/build.rs
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tag2/Cargo.toml → commands/tag2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tags2/Cargo.toml → commands/tags2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <erik@nordstroem.no>"]
edition = "2018"

Expand Down
File renamed without changes.
Loading

0 comments on commit e412753

Please sign in to comment.