Detailed changes
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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();
@@ -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()
@@ -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();
@@ -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();
@@ -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();