@wspc/cli 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,11 @@ scopes todos per project. Run `wspc todo project ls` to discover ids.
30
30
 
31
31
  | Command | Notes |
32
32
  | --- | --- |
33
- | `wspc login` / `logout` / `whoami` | OAuth device-flow auth; tokens stored in your local configuration file (with strict file permissions). |
33
+ | `wspc login` | OAuth device-flow auth. Multiple accounts can be logged in at once per environment; `login` adds a new account without overwriting an existing one. |
34
+ | `wspc logout [email]` | Log out the active account, or a specific one by email. `--all` logs out every account in the current environment. |
35
+ | `wspc whoami` | Show the active account. |
36
+ | `wspc account ls` | List all logged-in accounts in the current environment; the active one is marked with ✓. |
37
+ | `wspc account switch <email>` | Set the active account for subsequent commands. |
34
38
  | `wspc todo {add, ls, show, update, rm, done}` | Core todo CRUD. `done` is a sugar over `update --status done`. |
35
39
  | `wspc todo project {add, ls}` | Project scope. |
36
40
  | `wspc todo type ls` | List todo types. |
@@ -39,6 +43,17 @@ scopes todos per project. Run `wspc todo project ls` to discover ids.
39
43
 
40
44
  Pass `--help` to any subcommand for flags, aliases, and examples.
41
45
 
46
+ ### Running a command as a specific account
47
+
48
+ You can run any single command as a particular account without switching the active one:
49
+
50
+ ```bash
51
+ wspc --account alice@example.com todo ls -p prj_xxx
52
+ WSPC_ACCOUNT=alice@example.com wspc todo ls -p prj_xxx
53
+ ```
54
+
55
+ Precedence: `--account` flag > `WSPC_ACCOUNT` env var > active account (set by `wspc account switch`).
56
+
42
57
  ## Output: pretty by default, JSON for scripts
43
58
 
44
59
  Commands print a coloured aligned table (lists) or key-value block (detail