Skip to content

Commit

Permalink
fix error message for adding remote via config --set-remote
Browse files Browse the repository at this point in the history
  • Loading branch information
gschoeni committed Apr 5, 2023
1 parent 1514f82 commit e0413f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CommandWorkflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Revert back

Push the changes

`oxen remote add origin http://0.0.0.0:3000/repositories/SmallCatDog`
`oxen config --set-remote origin http://0.0.0.0:3000/repositories/SmallCatDog`

`oxen push`

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/IntegrateCLICode.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn set_remote(name: &str, url: &str) -> Result<(), OxenError> {
}
```

You can build with `cargo build` and run the CLI with `./target/debug/oxen remote add <REMOTE> <URL>`.
You can build with `cargo build` and run the CLI with `./target/debug/oxen config --set-remote <REMOTE> <URL>`.

Tip: For developing it is nice to just have this debug oxen binary in your path so you can use it from anywhere. You can just make a symbolic link to wherever your system looks for binaries in your path.

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/2_CollabAdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Remote url: http://0.0.0.0:3000/greg/SmallCatDog
Now let's set a remote named `origin` to this url. You can have multiple remotes with different URLs if you want to sync to different servers. For now we will just be working with `origin`

```shell
$ oxen remote add origin http://0.0.0.0:3000/repositories/SmallCatDog
$ oxen config --set-remote origin http://0.0.0.0:3000/repositories/SmallCatDog
```

Next let's push the data that is committed on the `main` branch to the remote named `origin`.
Expand Down
2 changes: 1 addition & 1 deletion src/cli/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub async fn create_remote(namespace: &str, name: &str, host: &str) -> Result<()

let remote_repo = command::create_remote(&repo, namespace, name, host).await?;
println!(
"Remote created for {}\n\noxen remote add origin {}",
"Remote created for {}\n\noxen config --set-remote origin {}",
name, remote_repo.remote.url
);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl OxenError {

pub fn remote_not_set() -> OxenError {
OxenError::basic_str(
"Remote not set, you can set a remote by running:\n\noxen remote add <name> <url>\n",
"Remote not set, you can set a remote by running:\n\noxen config --set-remote origin <name> <url>\n",
)
}

Expand Down

0 comments on commit e0413f9

Please sign in to comment.