Skip to content

Commit

Permalink
Allow unlabeled command
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil committed Jun 18, 2024
1 parent 4272ead commit f93d120
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 24 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

### 0.0.6
- Allow unlabeled command:

```rust
cmd! {
"cargo build",
env: Env::empty(),
pwd: Loc::root(),
msg: "Building a server",
}
```

### 0.0.5
- Fix non-TLS build.

Expand Down
8 changes: 4 additions & 4 deletions examples/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mod client {

pub fn build() -> Cmd {
cmd! {
exe: "rescript build -with-deps",
"rescript build -with-deps",
env: env(),
pwd: Loc::client(),
msg: "Building ReScript client",
Expand All @@ -91,7 +91,7 @@ mod client {
tag: "rescript",
cmd:
cmd! {
exe: "rescript build -w",
"rescript build -w",
env: env(),
pwd: Loc::client(),
msg: "Watching ReScript client",
Expand All @@ -105,7 +105,7 @@ mod server {

pub fn build() -> Cmd {
cmd! {
exe: "cargo build --package=server",
"cargo build --package=server",
env: Config::to_env(),
pwd: Loc::root(),
msg: "Building Rust server",
Expand All @@ -117,7 +117,7 @@ mod server {
tag: "server",
cmd:
cmd! {
exe: "cargo watch --watch server --exec 'run --package=server --color=always'",
"cargo watch --watch server --exec 'run --package=server --color=always'",
env: Config::to_env(),
pwd: Loc::root(),
msg: "Running reloadable Rust server",
Expand Down
Loading

0 comments on commit f93d120

Please sign in to comment.