This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 108f94f
Showing
16 changed files
with
640 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of | ||
experience, | ||
education, socio-economic status, nationality, personal appearance, race, | ||
religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected], or through | ||
IRC. All complaints will be reviewed and investigated and will result in a | ||
response that is deemed necessary and appropriate to the circumstances. The | ||
project team is obligated to maintain confidentiality with regard to the | ||
reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, | ||
available at | ||
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Contributing | ||
Contributions include code, documentation, answering user questions, running the | ||
project's infrastructure, and advocating for all types of users. | ||
|
||
The project welcomes all contributions from anyone willing to work in good faith | ||
with other contributors and the community. No contribution is too small and all | ||
contributions are valued. | ||
|
||
This guide explains the process for contributing to the project's GitHub | ||
Repository. | ||
|
||
- [Code of Conduct](#code-of-conduct) | ||
- [Bad Actors](#bad-actors) | ||
- [Developer Certificate of Origin](#developer-certificate-of-origin) | ||
|
||
## Code of Conduct | ||
The project has a [Code of Conduct][./CODE_OF_CONDUCT.md] that *all* | ||
contributors are expected to follow. This code describes the *minimum* behavior | ||
expectations for all contributors. | ||
|
||
As a contributor, how you choose to act and interact towards your | ||
fellow contributors, as well as to the community, will reflect back not only | ||
on yourself but on the project as a whole. The Code of Conduct is designed and | ||
intended, above all else, to help establish a culture within the project that | ||
allows anyone and everyone who wants to contribute to feel safe doing so. | ||
|
||
Should any individual act in any way that is considered in violation of the | ||
[Code of Conduct][./CODE_OF_CONDUCT.md], corrective actions will be taken. It is | ||
possible, however, for any individual to *act* in such a manner that is not in | ||
violation of the strict letter of the Code of Conduct guidelines while still | ||
going completely against the spirit of what that Code is intended to accomplish. | ||
|
||
Open, diverse, and inclusive communities live and die on the basis of trust. | ||
Contributors can disagree with one another so long as they trust that those | ||
disagreements are in good faith and everyone is working towards a common | ||
goal. | ||
|
||
## Bad Actors | ||
All contributors to tacitly agree to abide by both the letter and | ||
spirit of the [Code of Conduct][./CODE_OF_CONDUCT.md]. Failure, or | ||
unwillingness, to do so will result in contributions being respectfully | ||
declined. | ||
|
||
A *bad actor* is someone who repeatedly violates the *spirit* of the Code of | ||
Conduct through consistent failure to self-regulate the way in which they | ||
interact with other contributors in the project. In doing so, bad actors | ||
alienate other contributors, discourage collaboration, and generally reflect | ||
poorly on the project as a whole. | ||
|
||
Being a bad actor may be intentional or unintentional. Typically, unintentional | ||
bad behavior can be easily corrected by being quick to apologize and correct | ||
course *even if you are not entirely convinced you need to*. Giving other | ||
contributors the benefit of the doubt and having a sincere willingness to admit | ||
that you *might* be wrong is critical for any successful open collaboration. | ||
|
||
Don't be a bad actor. | ||
|
||
## Developer Certificate of Origin | ||
All contributors must read and agree to the [Developer Certificate of | ||
Origin (DCO)](../CERTIFICATE). | ||
|
||
The DCO allows us to accept contributions from people to the project, similarly | ||
to how a license allows us to distribute our code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Thanks for filing an issue 😄 ! Before you submit, please read the following: | ||
- Please search open/closed issues before submitting since someone might have asked the same thing before! | ||
- Note that by making a contribution, you agree to our Developer Certificate of Origin. | ||
--> | ||
|
||
**Choose one:** is this a 🐛 bug report, a 🙋 feature request, or a 🔦 question? | ||
|
||
<!-- Provide a general summary of the issue in the title above --> | ||
|
||
## Expected Behavior | ||
|
||
<!-- If you're describing a bug, tell us what should happen --> | ||
<!-- If you're suggesting a change/improvement, tell us how it should work --> | ||
|
||
## Current Behavior | ||
<!-- If describing a bug, tell us what happens instead of the expected behavior --> | ||
<!-- If you are seeing an error, please include the full error message and stack trace --> | ||
<!-- If suggesting a change/improvement, explain the difference from current behavior --> | ||
|
||
## Possible Solution | ||
<!-- Not obligatory, but suggest a fix/reason for the bug, --> | ||
<!-- or ideas how to implement the addition or change --> | ||
|
||
## Context | ||
<!-- How has this issue affected you? What are you trying to accomplish? --> | ||
<!-- Providing context helps us come up with a solution that is most useful in the real world --> | ||
|
||
## Code Sample | ||
<!-- If you are seeing an error, please provide a code repository, gist or sample files to reproduce the issue --> | ||
|
||
## Your Environment | ||
<!-- Include as many relevant details about the environment you experienced the bug in --> | ||
|
||
| Software | Version(s) | | ||
| ---------------- | ---------- | | ||
| Package | | ||
| Runtime | | ||
| Package Manager | | ||
| Operating System | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
Thanks for creating a Pull Request 😄 ! Before you submit, please read the following: | ||
- Read our CONTRIBUTING.md file before submitting a patch. | ||
- By making a contribution, you agree to our Developer Certificate of Origin. | ||
--> | ||
|
||
**Choose one:** is this a 🐛 bug fix, a 🙋 feature, or a 🔦 documentation change? | ||
|
||
<!-- Provide a general summary of the changes in the title above --> | ||
|
||
## Checklist | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
- [ ] tests pass | ||
- [ ] tests and/or benchmarks are included | ||
- [ ] documentation is changed or added | ||
|
||
## Context | ||
<!-- Is this related to any GitHub issue(s)? --> | ||
|
||
## Semver Changes | ||
<!-- Which semantic version change would you recommend? --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Configuration for probot-stale - https://github.com/probot/stale | ||
|
||
daysUntilStale: 90 | ||
daysUntilClose: 7 | ||
exemptLabels: | ||
- pinned | ||
- security | ||
exemptProjects: false | ||
exemptMilestones: false | ||
staleLabel: wontfix | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
unmarkComment: false | ||
closeComment: false | ||
limitPerRun: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coverage/ | ||
target/ | ||
tmp/ | ||
dist/ | ||
npm-debug.log* | ||
Cargo.lock | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: rust | ||
rust: | ||
- nightly | ||
|
||
before_script: | | ||
rustup component add rustfmt-preview && | ||
cargo install clippy -f | ||
script: | | ||
cargo fmt -- --check && | ||
cargo clippy -- -D clippy && | ||
cargo build --verbose && | ||
cargo test --verbose | ||
cache: cargo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Developer Certificate of Origin | ||
Version 1.1 | ||
|
||
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. | ||
1 Letterman Drive | ||
Suite D4700 | ||
San Francisco, CA, 94129 | ||
|
||
Everyone is permitted to copy and distribute verbatim copies of this | ||
license document, but changing it is not allowed. | ||
|
||
|
||
Developer's Certificate of Origin 1.1 | ||
|
||
By making a contribution to this project, I certify that: | ||
|
||
(a) The contribution was created in whole or in part by me and I | ||
have the right to submit it under the open source license | ||
indicated in the file; or | ||
|
||
(b) The contribution is based upon previous work that, to the best | ||
of my knowledge, is covered under an appropriate open source | ||
license and I have the right under that license to submit that | ||
work with modifications, whether created in whole or in part | ||
by me, under the same open source license (unless I am | ||
permitted to submit under a different license), as indicated | ||
in the file; or | ||
|
||
(c) The contribution was provided directly to me by some other | ||
person who certified (a), (b) or (c) and I have not modified | ||
it. | ||
|
||
(d) I understand and agree that this project and the contribution | ||
are public and that a record of the contribution (including all | ||
personal information I submit with it, including my sign-off) is | ||
maintained indefinitely and may be redistributed consistent with | ||
this project or the open source license(s) involved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "clap-log-flag" | ||
version = "0.1.0" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/rust-clique/clap-log-flag" | ||
documentation = "https://docs.rs/clap-log-flag" | ||
description = "Add a logger to CLIs using structopt" | ||
authors = ["Yoshua Wuyts <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
structopt = "0.2.10" | ||
env_logger = "0.5.12" | ||
failure = "0.1.2" | ||
log = "0.4.3" | ||
pretty_env_logger = "0.2.4" | ||
|
||
[dev-dependencies] | ||
clap-verbosity-flag = "0.2.0" |
Oops, something went wrong.