Skip to content

Commit bfa5aab

Browse files
authored
Merge pull request #1214 from BryceGattis/hotfix/clarify_spfs_shell_usage
Clarify spfs shell usage across codebase
2 parents 4a747a2 + b54c7d7 commit bfa5aab

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

crates/spfs-cli/cmd-fuse/src/cmd_fuse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub struct CmdFuse {
106106

107107
/// The tag or id of the files to mount
108108
///
109-
/// Use '-' or nothing to request an empty environment
109+
/// Use '-' or an empty string to request an empty environment
110110
#[clap(name = "REF")]
111111
reference: EnvSpec,
112112

crates/spfs-cli/cmd-winfsp/src/cmd_winfsp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct CmdMount {
246246

247247
/// The tag or id of the files to mount
248248
///
249-
/// Use '-' or '' to request an empty environment
249+
/// Use '-' or an empty string to request an empty environment
250250
#[clap(name = "REF")]
251251
reference: EnvSpec,
252252
}

crates/spfs-cli/main/src/cmd_run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ pub struct CmdRun {
151151

152152
/// The tag or id of the desired runtime
153153
///
154-
/// Use '-' to request an empty environment
154+
/// Use '-' to or an empty string to request an empty environment
155155
pub reference: Option<spfs::tracking::EnvSpec>,
156156

157157
/// The command to run in the environment and its arguments

crates/spfs-cli/main/src/cmd_shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct CmdShell {
5454

5555
/// The tag or id of the desired runtime
5656
///
57-
/// Use '-' or nothing to request an empty environment
57+
/// Use '-' or an empty string to request an empty environment
5858
#[clap(name = "REF")]
5959
reference: Option<spfs::tracking::EnvSpec>,
6060
}

docs/spfs/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The contents of `/spfs` are managed _per-process-tree_. This means that one prog
2323

2424
```bash
2525
# enter an empty spfs environment
26-
spfs shell
26+
spfs shell -
2727

2828
# put some files into the spfs area
2929
echo "hello, world" > /spfs/message.txt
@@ -59,7 +59,7 @@ The spfs _commit_ process is used to capture any active file changes and save th
5959

6060
```bash
6161
# enter an empty spfs environment
62-
spfs shell
62+
spfs shell -
6363

6464
# put some files into the spfs area
6565
echo "hello, world" > /spfs/message.txt

docs/spfs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Additional command line workflows for more advanced users.
1111
When tags are created in spfs, they are added to what is known as a _tag stream_. Tag streams are simply a historical record of that tag over time, keeping track of each change, when it was made, and by whom. Previous versions of a tag can be referenced using a tilde, where the most recent version of a tag is version `~0`; the previous version is version `~1`; the version before that is version `~2` etc... This notation can be used everywhere a tag can be used. This means that `spfs run my-tag` is the same as `spfs run my-tag~0`. All the available versions of a tag can be viewed using the `spfs log <tag>` command, where you will see this notation used.
1212

1313
```bash
14-
spfs shell
14+
spfs shell -
1515

1616
echo 1 > /spfs/message.txt
1717
spfs commit layer --tag my-layer
@@ -60,7 +60,7 @@ It's easy enough to pull and mount an spfs file tree, but sometimes it's not ide
6060
- `spfs cat` can be used to output the contents of a file stored in spfs
6161

6262
```bash
63-
spfs shell
63+
spfs shell -
6464
mkdir -p /spfs/bin
6565
echo "I am root" > /spfs/root.txt
6666
touch /spfs/bin/command

0 commit comments

Comments
 (0)