Skip to content

Commit

Permalink
feat: upgrade banner + independent tokio runtime (#60)
Browse files Browse the repository at this point in the history
* feat: upgrade banner + independent tokio runtime

* chore: release v0.4.1
  • Loading branch information
zifeo authored Apr 21, 2023
1 parent 8e31402 commit 9c9c2b3
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 162 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ jobs:
- os: macos-latest
target: x86_64-apple-darwin
suffix: ""
- os: macos-latest
target: aarch64-apple-darwin
suffix: ""
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
suffix: ""
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
target: aarch64-unknown-linux-gnu
suffix: ""
- os: windows-latest
target: x86_64-pc-windows-msvc
Expand Down
92 changes: 58 additions & 34 deletions Cargo.lock

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

14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whiz"
version = "0.4.1-beta.1"
version = "0.4.1"
edition = "2021"
description = "Modern DAG/tasks runner for multi-platform monorepos."
license = "MPL-2.0"
Expand All @@ -9,20 +9,21 @@ license = "MPL-2.0"
actix = "0.13.0"
ansi-to-tui = "3.0.0"
anyhow = "1.0.70"
chrono = "0.4.24"
clap = { version = "4.2.2", features = ["derive"] }
chrono = { version = "0.4.24", features = ["serde"] }
clap = { version = "4.2.4", features = ["derive"] }
crossterm = "0.26.1"
directories = "5.0.0"
dotenv-parser = "0.1.3"
globset = "0.4.10"
ignore = "0.4.20"
indexmap = { version = "1.9.3", features = ["serde"] }
# lade-sdk = { path = "../../github/lade/sdk"}
lade-sdk = "0.5.3"
lade-sdk = "0.5.5"
notify = "5.1.0"
openssl = { version = "0.10.50", features = ["vendored"] }
openssl = { version = "0.10.51", features = ["vendored"] }
path-absolutize = "3.0.14"
path-clean = "1.0.1"
regex = "1.7.3"
regex = "1.8.1"
self_update = { version = "0.36.0", features = [
"archive-tar",
"archive-zip",
Expand All @@ -35,5 +36,6 @@ serde_yaml = "0.9.21"
strip-ansi-escapes = "0.1.1"
subprocess = "0.2.9"
textwrap = "0.16.0"
tokio = { version = "1.27.0", features = ["full"] }
tui = {version = "0.20.1", package = "ratatui"}
url = "2.3.1"
43 changes: 43 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
use clap::{Parser, Subcommand};

#[derive(Parser, Debug, Clone)]
pub struct Upgrade {
/// Upgrade to specific version (e.g. 1.0.0)
#[clap(long)]
pub version: Option<String>,

/// Do not ask for version confirmation
#[clap(short, long, default_value_t = false)]
pub yes: bool,
}

/// Set of subcommands.
#[derive(Subcommand, Debug)]
pub enum Command {
/// Upgrade whiz.
Upgrade(Upgrade),
}

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
pub struct Args {
#[clap(subcommand)]
pub command: Option<Command>,

#[clap(short, long, default_value = "whiz.yaml")]
pub file: String,

#[clap(short, long)]
pub verbose: bool,

#[clap(short, long)]
pub timestamp: bool,

/// Run specific jobs
#[clap(short, long, value_name = "JOB")]
pub run: Vec<String>,

/// List all the jobs set in the config file
#[clap(long)]
pub list_jobs: bool,
}
Loading

0 comments on commit 9c9c2b3

Please sign in to comment.