mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
2961: Pin the zola version used to deploy the site r=epage a=pksunkara 2965: fix(error): Never show unrequested color r=pksunkara a=epage Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com> Co-authored-by: Ed Page <eopage@gmail.com>
This commit is contained in:
commit
2ce916133b
2 changed files with 7 additions and 5 deletions
8
.github/workflows/site.yml
vendored
8
.github/workflows/site.yml
vendored
|
@ -2,7 +2,9 @@ name: Site
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: ["site/**"]
|
||||
paths:
|
||||
- site/**
|
||||
- .github/workflows/site.yml
|
||||
concurrency:
|
||||
group: site
|
||||
cancel-in-progress: true
|
||||
|
@ -14,13 +16,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
uses: shalzz/zola-deploy-action@master
|
||||
uses: shalzz/zola-deploy-action@v0.14.1
|
||||
env:
|
||||
BUILD_DIR: site
|
||||
BUILD_ONLY: true
|
||||
- name: Deploy
|
||||
if: ${{ success() }}
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.0
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: site/public
|
||||
|
|
|
@ -870,7 +870,7 @@ impl Error {
|
|||
val: String,
|
||||
err: Box<dyn error::Error + Send + Sync>,
|
||||
) -> Self {
|
||||
Self::value_validation_with_color(arg, val, err, ColorChoice::Auto)
|
||||
Self::value_validation_with_color(arg, val, err, ColorChoice::Never)
|
||||
}
|
||||
|
||||
fn value_validation_with_color(
|
||||
|
@ -996,7 +996,7 @@ impl Error {
|
|||
}
|
||||
|
||||
pub(crate) fn argument_not_found_auto(arg: String) -> Self {
|
||||
let mut c = Colorizer::new(true, ColorChoice::Auto);
|
||||
let mut c = Colorizer::new(true, ColorChoice::Never);
|
||||
|
||||
start_error(&mut c, "The argument '");
|
||||
c.warning(arg.clone());
|
||||
|
|
Loading…
Reference in a new issue