Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLI] Adds initial package layout on
sui move new
(#16255)
## Description Following the discussion on scaffolding the app: - adds `sources/{name}.move` - adds `tests/{name}_tests.move` ```sh sources/ donuts.move tests/ donuts_tests.move Move.toml ``` File: sources/name.move; Commented out contents: ```move /// Module: donuts module donuts::donuts { } ``` File: tests/name_tests.move; Commented out contents: ```move #[test_only] module donuts::donuts_tests { // uncomment this line to import the module // use donuts::donuts; const ENotImplemented: u64 = 0; #[test] fun test_donuts() { // pass } #[test, expected_failure(abort_code = donuts::donuts_tests::ENotImplemented)] fun test_donuts_fail() { abort ENotImplemented } } ``` ## Test Plan Tests pass! ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information