Skip to content

Commit

Permalink
A very first version of gix progress show (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 23, 2022
1 parent 8d17dc6 commit 92e082a
Show file tree
Hide file tree
Showing 9 changed files with 756 additions and 679 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ env_logger = { version = "0.9.0", default-features = false }
crosstermion = { version = "0.10.1", optional = true, default-features = false }
futures-lite = { version = "1.12.0", optional = true, default-features = false, features = ["std"] }

# for show-progress
owo-colors = "3.5.0"

document-features = { version = "0.2.0", optional = true }

[profile.dev.package]
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Please see _'Development Status'_ for a listing of all crates and their capabili
* Based on the [git-hours] algorithm.
* See the [discussion][git-hours-discussion] for some performance data.
* **the `gix` program** _(plumbing)_ - lower level commands for use in automation
* **progress**
* [x] **show** - provide an overview of what works and what doesn't from the perspective of the git configuration.
This is likely to change a lot over time depending on actual needs, but maybe useful for you to see
if particular git-configuration is picked up and where it deviates.
* **config** - list the complete git configuration in human-readable form and optionally filter sections by name.
* **exclude**
* [x] **query** - check if path specs are excluded via gits exclusion rules like `.gitignore`.
Expand Down
9 changes: 7 additions & 2 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ use gitoxide_core as core;
use gitoxide_core::pack::verify;

use crate::{
plumbing::options::{
commit, config, credential, exclude, free, mailmap, odb, remote, revision, tree, Args, Subcommands,
plumbing::{
options::{
commit, config, credential, exclude, free, mailmap, odb, progress, remote, revision, tree, Args,
Subcommands,
},
show_progress,
},
shared::pretty::prepare_and_run,
};
Expand Down Expand Up @@ -111,6 +115,7 @@ pub fn main() -> Result<()> {
})?;

match cmd {
Subcommands::Progress(progress::Subcommands::Show) => show_progress(),
Subcommands::Credential(cmd) => core::repository::credential(
repository(Mode::StrictWithGitInstallConfig)?,
match cmd {
Expand Down
4 changes: 4 additions & 0 deletions src/plumbing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
mod main;
pub use main::main;

#[path = "progress.rs"]
mod progress_impl;
pub use progress_impl::show_progress;

mod options;
Loading

0 comments on commit 92e082a

Please sign in to comment.