A workspace is a local directory that holds some or all of a repository’s files, where you make changes. Its state is kept in .af/ at its root. When you run af inside a workspace, it finds the workspace from the current directory and uses its server and repository.
Usage
af workspace [OPTIONS] <COMMAND>Commands
Global options
Every af command also takes the global options.
Examples
af workspace add ~/src/web
af workspace add ~/src/api --path 'services/api/**'
af workspace rootaf workspace add
Create a workspace
Creates a workspace in DIR holding the files that match the –path globs, at main’s latest landing. The workspace records the server and repository, so commands run inside it use them. DIR must be new or empty; a workspace that cannot be made leaves nothing of it behind, and removes nothing it did not write, so the same command can be run again.
Usage
af workspace add [OPTIONS] <DIR>Arguments
-
<DIR>Directory for the workspace, new or empty; created if missing
Options
-
--path <PATHS>Glob of files to include, from the repository root, such as
crates/foo/**Repeat to include more. Every file is included if omitted.
Global options
Every af command also takes the global options.
Examples
af --repository web workspace add ~/src/web
af --repository web workspace add ~/src/api --path 'services/api/**' --path 'libs/**'af workspace root
Print the root directory of the current workspace
Usage
af workspace root [OPTIONS]Global options
Every af command also takes the global options.