@@ -21,11 +21,13 @@ directories for Git repositories that already live on disk.
2121
2222Provide a repository name and remote URL to append an entry to your
2323configuration. Use ` --path ` when you already have a working tree on disk so the
24- configured base directory matches its location. Override the inferred base
25- directory with ` --dir ` when you need a specific configuration key .
24+ inferred workspace root matches its location. Override the detected workspace
25+ root with ` --workspace-root ` when you need to target a specific directory .
2626
2727``` console
2828$ vcspull import my-lib https://github.com/example/my-lib.git --path ~ /code/my-lib
29+ $ vcspull import another-lib https://github.com/example/another-lib.git \
30+ --workspace-root ~/code
2931```
3032
3133With no ` -c/--config ` flag vcspull looks for the first YAML configuration file
@@ -36,18 +38,18 @@ new `.vcspull.yaml` is created next to where you run the command.
3638
3739` vcspull import --scan ` discovers Git repositories that already exist on disk
3840and writes them to your configuration. The command prompts before adding each
39- repository, showing the inferred name, directory key , and origin URL (when
41+ repository, showing the inferred name, workspace root , and origin URL (when
4042available).
4143
4244``` console
4345$ vcspull import --scan ~ /code --recursive
44- ? Add ~/code/vcspull (dir : ~/code/)? [y/N]: y
45- ? Add ~/code/libvcs (dir : ~/code/)? [y/N]: y
46+ ? Add ~/code/vcspull (workspace root : ~/code/)? [y/N]: y
47+ ? Add ~/code/libvcs (workspace root : ~/code/)? [y/N]: y
4648```
4749
4850- ` --recursive ` /` -r ` searches nested directories.
49- - ` --base-dir-key ` forces all discovered repositories to use the same base
50- directory key , overriding the automatically expanded directory .
51+ - ` --workspace-root ` forces all discovered repositories to use the same
52+ workspace root , overriding the directory inferred from their location .
5153- ` --yes ` /` -y ` accepts every suggestion, which is useful for unattended
5254 migrations.
5355
0 commit comments