Fix (and rewrite) dx init/dx new (#2822)
* 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
This commit is contained in:
1 parent
a0e649ad96
commit
fca5a82e2b
5 files changed
+541
-134
No files matched your search
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user