-
Notifications
You must be signed in to change notification settings - Fork 16
feat(cli): improve multi-context UX and Config.write API #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,22 +50,22 @@ The CLI reads configuration from `~/.config/nmp/config.yaml`: | |
| current_context: production | ||
|
|
||
| clusters: | ||
| - name: prod-cluster | ||
| - name: production-cluster | ||
| base_url: https://nmp.example.com | ||
| - name: local | ||
| base_url: http://localhost:8080 | ||
|
|
||
| users: | ||
| - name: prod-admin | ||
| - name: production-admin | ||
| type: api-key | ||
| api_key: your-api-key-here | ||
| - name: local-user | ||
| type: no-auth | ||
|
|
||
| contexts: | ||
| - name: production | ||
| cluster: prod-cluster | ||
| user: prod-admin | ||
| cluster: production-cluster | ||
| user: production-admin | ||
| workspace: default | ||
| preferences: | ||
| output_format: table | ||
|
|
@@ -86,7 +86,7 @@ Configure a context with `nemo config set`: | |
|
|
||
| ```bash | ||
| nemo config set --base-url https://nmp.example.com | ||
| nemo config set --context prod --base-url https://nmp.prod.example.com --activate | ||
| nemo config set --context production --base-url https://nmp.example.com --activate | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win Do not modify the current context before creating Line 88 and Line 89 run sequentially. The first command can overwrite the current context URL before the second command creates 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ``` | ||
|
|
||
| ### Priority | ||
|
|
@@ -146,10 +146,10 @@ nemo config set --api-key YOUR_API_KEY | |
| nemo config set --workspace my-workspace --output-format json | ||
|
|
||
| # Configure and activate a named context in one step | ||
| nemo config set --context prod --base-url https://api.prod.example.com --activate | ||
| nemo config set --context production --base-url https://nmp.example.com --activate | ||
|
|
||
| # Switch to an existing context | ||
| nemo config use-context prod | ||
| nemo config use-context production | ||
| ``` | ||
|
|
||
| ## Setup (Local Development) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift
Split workflow and reference content.
This page mixes HOW-TO workflows with REFERENCE content. Move connection workflows to a HOW-TO page. Keep configuration fields, precedence, telemetry, and completion in REFERENCE pages. Add prerequisites and a
Next Stepssection.As per coding guidelines, “Each documentation page should fit ONE Diataxis quadrant” and “Always list prerequisites at the top of documentation pages before other content.”
🤖 Prompt for AI Agents
Source: Coding guidelines