Update test files to use project subcommand

Amolith created

Change summary

tests/cli_create.rs    |  2 +-
tests/cli_dep.rs       |  2 +-
tests/cli_io.rs        |  6 +++---
tests/cli_label.rs     |  2 +-
tests/cli_list_show.rs |  2 +-
tests/cli_log.rs       |  4 ++--
tests/cli_migrate.rs   | 10 +++++-----
tests/cli_next.rs      |  2 +-
tests/cli_query.rs     |  2 +-
tests/cli_rm.rs        |  2 +-
tests/cli_sync.rs      |  2 +-
tests/cli_tidy.rs      |  2 +-
tests/cli_update.rs    |  2 +-
tests/repro_compact.rs |  2 +-
14 files changed, 21 insertions(+), 21 deletions(-)

Detailed changes

tests/cli_create.rs 🔗

@@ -12,7 +12,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_dep.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_io.rs 🔗

@@ -10,7 +10,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();
@@ -83,7 +83,7 @@ fn import_round_trips_with_export() {
     // Create a fresh directory, init, import.
     let tmp2 = TempDir::new().unwrap();
     td(&tmp2)
-        .args(["init", "mirror"])
+        .args(["project", "init", "mirror"])
         .current_dir(&tmp2)
         .assert()
         .success();
@@ -145,7 +145,7 @@ fn export_import_preserves_effort() {
 
     let tmp2 = TempDir::new().unwrap();
     td(&tmp2)
-        .args(["init", "mirror"])
+        .args(["project", "init", "mirror"])
         .current_dir(&tmp2)
         .assert()
         .success();

tests/cli_label.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_list_show.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_log.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();
@@ -174,7 +174,7 @@ fn export_import_round_trips_logs() {
 
     let tmp2 = TempDir::new().unwrap();
     td(&tmp2)
-        .args(["init", "mirror"])
+        .args(["project", "init", "mirror"])
         .current_dir(&tmp2)
         .assert()
         .success();

tests/cli_migrate.rs 🔗

@@ -13,7 +13,7 @@ fn init_sets_loro_schema_version_in_meta() {
     let tmp = TempDir::new().unwrap();
 
     td(&tmp)
-        .args(["init", "demo"])
+        .args(["project", "init", "demo"])
         .current_dir(&tmp)
         .assert()
         .success();
@@ -28,7 +28,7 @@ fn corrupted_delta_file_is_tolerated_on_open() {
     let tmp = TempDir::new().unwrap();
 
     td(&tmp)
-        .args(["init", "demo"])
+        .args(["project", "init", "demo"])
         .current_dir(&tmp)
         .assert()
         .success();
@@ -63,7 +63,7 @@ fn project_env_overrides_directory_binding() {
     std::fs::create_dir_all(&beta_dir).unwrap();
 
     td(&tmp)
-        .args(["init", "alpha"])
+        .args(["project", "init", "alpha"])
         .current_dir(&alpha_dir)
         .assert()
         .success();
@@ -74,7 +74,7 @@ fn project_env_overrides_directory_binding() {
         .success();
 
     td(&tmp)
-        .args(["init", "beta"])
+        .args(["project", "init", "beta"])
         .current_dir(&beta_dir)
         .assert()
         .success();
@@ -108,7 +108,7 @@ fn legacy_local_sqlite_artifacts_do_not_affect_commands() {
     let tmp = TempDir::new().unwrap();
 
     td(&tmp)
-        .args(["init", "demo"])
+        .args(["project", "init", "demo"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_next.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_query.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_rm.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_sync.rs 🔗

@@ -18,7 +18,7 @@ fn sync_invalid_code_format_fails() {
 
     Command::cargo_bin("td")
         .unwrap()
-        .args(["init", "synctest"])
+        .args(["project", "init", "synctest"])
         .current_dir(cwd.path())
         .env("HOME", home.path())
         .assert()

tests/cli_tidy.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/cli_update.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn init_tmp() -> TempDir {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();

tests/repro_compact.rs 🔗

@@ -11,7 +11,7 @@ fn td(home: &TempDir) -> Command {
 fn compact_cleans_delta_files() {
     let tmp = TempDir::new().unwrap();
     td(&tmp)
-        .args(["init", "main"])
+        .args(["project", "init", "main"])
         .current_dir(&tmp)
         .assert()
         .success();