Browse Source

Disable build.rs now that completions files are built

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
b585239348
2 changed files with 7 additions and 7 deletions
  1. +1
    -1
      Cargo.toml
  2. +6
    -6
      build.rs

+ 1
- 1
Cargo.toml View File

@@ -8,7 +8,7 @@ description = "Static site generator"
homepage = "https://github.com/Keats/gutenberg" homepage = "https://github.com/Keats/gutenberg"
repository = "https://github.com/Keats/gutenberg" repository = "https://github.com/Keats/gutenberg"
keywords = ["static", "site", "generator", "blog"] keywords = ["static", "site", "generator", "blog"]
build = "build.rs"
# build = "build.rs"


[build-dependencies] [build-dependencies]
clap = "2" clap = "2"


+ 6
- 6
build.rs View File

@@ -6,10 +6,10 @@ use clap::Shell;
include!("src/cli.rs"); include!("src/cli.rs");


fn main() { fn main() {
let mut app = build_cli();
println!("hello");
app.gen_completions("gutenberg", Shell::Bash, "completions/");
app.gen_completions("gutenberg", Shell::Fish, "completions/");
app.gen_completions("gutenberg", Shell::Zsh, "completions/");
app.gen_completions("gutenberg", Shell::PowerShell, "completions/");
// disabled below as it fails in CI
// let mut app = build_cli();
// app.gen_completions("gutenberg", Shell::Bash, "completions/");
// app.gen_completions("gutenberg", Shell::Fish, "completions/");
// app.gen_completions("gutenberg", Shell::Zsh, "completions/");
// app.gen_completions("gutenberg", Shell::PowerShell, "completions/");
} }

Loading…
Cancel
Save