Skip to content

Commit

Permalink
Fix (and rewrite) dx init/dx new (#2822)
Browse files Browse the repository at this point in the history
* fix(cli)!: init subcommand now works correctly
* test(cli): added tests for init subcommands
* chore: moved `init` subcommand tests to its own file
* removed unnecessary arguments from tested command
* refactor(cli)!: new subcommand now behaves like cargo
* moved the hidden cursor workaround into a function
* feat(cli): added `branch` flag for init/new subcommands
* feat(cli): added `revision` and `tag` options
  • Loading branch information
Andrew15-5 authored Nov 16, 2024
1 parent a0e649a commit fca5a82
Show file tree
Hide file tree
Showing 5 changed files with 541 additions and 134 deletions.
98 changes: 61 additions & 37 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions packages/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ wasm-opt = { version = "0.116.1", optional = true }
crossterm = { version = "0.28.0", features = ["event-stream"] }
ansi-to-tui = "6.0"
ansi-to-html = "0.2.1"
path-absolutize = "3.1"
ratatui = { version = "0.28.0", features = ["crossterm", "unstable"] }

# disable `log` entirely since `walrus` uses it and is *much* slower with it enableda
Expand Down Expand Up @@ -138,6 +139,9 @@ wasm-opt = ["dep:wasm-opt"]
path = "src/main.rs"
name = "dx"

[dev-dependencies]
escargot = "0.5"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-v{ version }{ archive-suffix }"
pkg-fmt = "tgz"
Expand Down
Loading

0 comments on commit fca5a82

Please sign in to comment.