Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLI] Add a check for the validity of the argument <NAME> in `sui mov…
…e new` (#17568) CLI] Add a check for the validity of the argument <NAME> in `sui move new` ## Description Describe the changes or additions included in this PR. - **Before modification** ``` $ sui_1.25.0-879421a5ac5f move new 1/ No such file or directory (os error 2) $ sui_1.25.0-879421a5ac5f move new 1/2 No such file or directory (os error 2) ``` - **After modification** ``` $ ./target/release/sui move new 1/ only package name is allowed, cannot be a path $ ./target/release/sui move new 1/2 only package name is allowed, cannot be a path ``` <img width="359" alt="image" src="https://github.com/MystenLabs/sui/assets/96097578/4526e850-178d-432c-bddf-5b4bed4972ea"> ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [x] CLI: - [ ] Rust SDK: --------- Co-authored-by: bityoume <[email protected]> Co-authored-by: Ashok Menon <[email protected]>
- Loading branch information