Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract library #314

Merged
merged 46 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ae3313e
wip
MarcoIeni Jan 21, 2023
d3dc47b
wip
MarcoIeni Jan 21, 2023
edda25a
wip
MarcoIeni Jan 21, 2023
62286f2
expand match
MarcoIeni Jan 21, 2023
3777e0a
clippy
MarcoIeni Jan 21, 2023
039b163
Merge branch 'main' into lib
MarcoIeni Jan 21, 2023
1d72ef7
clippy
MarcoIeni Jan 21, 2023
c1ba81a
move match
MarcoIeni Jan 21, 2023
fb3f9d2
move rev
MarcoIeni Jan 21, 2023
4a495fd
easier
MarcoIeni Jan 21, 2023
2ef3486
Update src/lib.rs
MarcoIeni Jan 22, 2023
7712fae
Merge remote-tracking branch 'origin' into lib
MarcoIeni Jan 23, 2023
94bd75f
introduce Rustdoc struct
MarcoIeni Jan 25, 2023
9e9d3c6
adapt code to rustdoc refactor
MarcoIeni Jan 25, 2023
afe48e1
Merge branch 'main' into lib
MarcoIeni Jan 25, 2023
b4e9aa6
clippy
MarcoIeni Jan 25, 2023
b27b7ab
fix
MarcoIeni Jan 25, 2023
daa8426
inline function
MarcoIeni Jan 27, 2023
1190770
avoid mixing including and excluded packages
MarcoIeni Jan 27, 2023
1324805
Merge branch 'main' into lib
MarcoIeni Jan 27, 2023
9d35505
clippy
MarcoIeni Jan 27, 2023
c5a7ae8
Merge branch 'main' into lib
MarcoIeni Jan 27, 2023
b3d22d6
Merge branch 'main' into lib
obi1kenobi Feb 3, 2023
ad9d81c
add derive debug
MarcoIeni Feb 5, 2023
8363bd8
Update src/lib.rs
MarcoIeni Feb 5, 2023
368ee5b
add non_exhaustive
MarcoIeni Feb 5, 2023
f626d7e
non_exhaustive
MarcoIeni Feb 5, 2023
19ba58f
Update src/lib.rs
MarcoIeni Feb 5, 2023
ab2dd0a
Update src/lib.rs
MarcoIeni Feb 5, 2023
eac165e
non_exhaustive
MarcoIeni Feb 5, 2023
64509d7
fix
MarcoIeni Feb 5, 2023
9990b69
debug
MarcoIeni Feb 5, 2023
5a334ba
doc comment
MarcoIeni Feb 5, 2023
a496d42
rustdoc
MarcoIeni Feb 5, 2023
bae60ec
Merge branch 'main' into lib
tonowak Feb 5, 2023
b0f7102
Path handling
tonowak Feb 8, 2023
371ccab
remove useless check
MarcoIeni Feb 8, 2023
72ee617
Fix baseline_root when no baseline-path given and baseline-rev passed
tonowak Feb 8, 2023
2449acd
Fallback to XDG cache dir
tonowak Feb 8, 2023
8485cc5
Renamed registry/version items
tonowak Feb 9, 2023
4988c0a
Merge branch 'main' into lib
obi1kenobi Feb 12, 2023
a6bd76b
Merge branch 'main' into lib
MarcoIeni Feb 17, 2023
e5da9d8
fmt
MarcoIeni Feb 18, 2023
22c0081
use directories crate
MarcoIeni Feb 18, 2023
7516ab0
Added panic in 'unknown' branch
tonowak Feb 20, 2023
09bd405
Merge branch 'main' into lib
obi1kenobi Feb 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ bugreport = "0.5.0"
itertools = "0.10.5"
cargo_toml = "0.15.2"
toml = "0.5.9"
directories = "4.0.1"

[dev-dependencies]
assert_cmd = "2.0"
Expand Down
8 changes: 7 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ use termcolor::{ColorChoice, StandardStream};
use crate::templating::make_handlebars_registry;

#[allow(dead_code)]
pub(crate) struct GlobalConfig {
pub struct GlobalConfig {
level: Option<log::Level>,
is_stderr_tty: bool,
stdout: StandardStream,
stderr: StandardStream,
handlebars: handlebars::Handlebars<'static>,
}

impl Default for GlobalConfig {
fn default() -> Self {
Self::new()
}
}
MarcoIeni marked this conversation as resolved.
Show resolved Hide resolved

impl GlobalConfig {
pub fn new() -> Self {
let is_stdout_tty = atty::is(atty::Stream::Stdout);
Expand Down
Loading