Skip to content

Commit be6785a

Browse files
committed
Update README with new command structure and simplify project unswitch handler
1 parent f2003cf commit be6785a

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,19 @@ cbrain [options] <MODEL> <ACTION> [id_or_args]
8888
- `--jsonl` or `-jl`: JSON Lines format (one JSON object per line)
8989

9090
## Available Commands
91-
- `file (f)` - Manage individual file operations and metadata
92-
- `background-activities` - Monitor and manage long-running background processes
93-
- `data-providers` - Configure and manage data storage locations and access
94-
- `files` - List, upload, download, and organize research data files
95-
- `projects` - Create and manage research project workspaces
96-
- `remote_resources` - Configure computational clusters and processing resources
97-
- `tags` - Apply and manage metadata tags for organizing content
98-
- `tasks` - Submit, show and manage computational analysis jobs
99-
- `tool_configs` - Configure analysis tools and processing parameters
100-
- `tools` - Browse available analysis tools and their capabilities
91+
- `version` - Show CLI version
92+
- `login` - Login to CBRAIN
93+
- `logout` - Logout from CBRAIN
94+
- `whoami` - Show current session
95+
- `file` - File operations
96+
- `dataprovider` - Data provider operations
97+
- `project` - Project operations
98+
- `tool` - Tool operations
99+
- `tool-config` - Tool configuration operations
100+
- `tag` - Tag operations
101+
- `background` - Background activity operations
102+
- `task` - Task operations
103+
- `remote-resource` - Remote resource operations
101104

102105
## Command Examples
103106

cbrain_cli/handlers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ def handle_project_show(args):
175175

176176
def handle_project_unswitch(args):
177177
"""Unswitch from current project context."""
178-
target = getattr(args, "target", None)
179-
if target == "all":
180-
print("Project Unswitch 'all' not yet implemented as of Aug 2025")
181-
else:
182-
print(f"Error: Invalid target '{target}'. Only 'all' is supported.")
178+
print("Project Unswitch 'all' not yet implemented as of Aug 2025")
183179

184180

185181
# Tool command handlers

cbrain_cli/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def main():
224224
project_unswitch_parser = project_subparsers.add_parser(
225225
"unswitch", help="Unswitch from current project"
226226
)
227-
project_unswitch_parser.add_argument("target", help="Target to unswitch ('all' supported)")
228227
project_unswitch_parser.set_defaults(func=handle_errors(handle_project_unswitch))
229228

230229
# Tool commands

0 commit comments

Comments
 (0)