mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
update readme,changelog and rename logging arg (#88)
This commit is contained in:
parent
f143f09ad8
commit
7ea8f34f68
4 changed files with 6 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- support reverse tabbing using shift+tab ([#92](https://github.com/extrawurst/gitui/issues/92))
|
- support reverse tabbing using shift+tab ([#92](https://github.com/extrawurst/gitui/issues/92))
|
||||||
|
- switch to using cmd line args instead of `ENV` (`-l` for logging and `--version`) **please convert your GITUI_LOGGING usage** [[@shenek](https://github.com/shenek)] ([#88](https://github.com/extrawurst/gitui/issues/88))
|
||||||
|
|
||||||
## [0.4.0] - 2020-05-25
|
## [0.4.0] - 2020-05-25
|
||||||
|
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
||||||
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
|
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
GITUI_LOGGING=true cargo run --features=timing
|
cargo run --features=timing -- -l
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ cargo install gitui
|
||||||
|
|
||||||
to enable logging:
|
to enable logging:
|
||||||
```
|
```
|
||||||
GITUI_LOGGING=true gitui
|
gitui -l
|
||||||
```
|
```
|
||||||
|
|
||||||
this will log to:
|
this will log to:
|
||||||
|
|
|
||||||
|
|
@ -227,16 +227,14 @@ fn process_cmdline() -> Result<()> {
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(crate_description!())
|
.about(crate_description!())
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("gitui-logging")
|
Arg::with_name("logging")
|
||||||
.help("Stores logging output into a cache directory")
|
.help("Stores logging output into a cache directory")
|
||||||
.short("l")
|
.short("l")
|
||||||
.long("gitui-logging")
|
.long("logging"),
|
||||||
.takes_value(false)
|
|
||||||
.required(false),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let arg_matches = app.get_matches();
|
let arg_matches = app.get_matches();
|
||||||
if arg_matches.is_present("gitui-logging") {
|
if arg_matches.is_present("logging") {
|
||||||
setup_logging()?;
|
setup_logging()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue