We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cargo-when
stager
cargo-make
ci_info
From that, the needs are:
Inputs
serde
std::env
Some key points about the existing API
ci_detective::<CI>::<CI>
ci_detective::is_ci()
ci_detective::CI::new()
Option<CI>
CI
Deserializer
Deserialize
See #3
&mut
The text was updated successfully, but these errors were encountered:
@CAD97, I'm trying to make sure we have an idea of all expected use cases. Do you have any you'd like to add that helped motivate you to write this?
Sorry, something went wrong.
I've actually not used it (😆), I just had an idea I really wanted to try out.
No branches or pull requests
Use cases
cargo-when
stager
: in a tool for laying out files for packaging, I want some parts of ci-detective available for variable substitutionscargo-make
usesci_info
to not auto-update if within CIDesign Requirements
From that, the needs are:
Inputs
serde
is a push system, we don't know what fields are requested, so we'd have to load them allstd::env
always allocates because (1) of locks and (2) of Windows string typesSome key points about the existing API
Proposal
ci_detective::<CI>::<CI>
has functions to query and return the value if possibleci_detective::is_ci()
will do a fast-path check if running in a CIci_detective::CI::new()
will beOption<CI>
CI
will have methods for common CI queries. Closed-form polymorphism will be used to make it easier to change without being a breaking change.Open Questions
Deserializer
to support converting toDeserialize
types?Alternatives
Load all data into structs
Free functions
Structs that offer both lazy and eager loading
See #3
&mut
The text was updated successfully, but these errors were encountered: