Skip to content

shell: use namespace #2507

Open
Open
@Codelax

Description

@Codelax

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add a command to use a specific namespace.
It could also be a flag. We should be able to input stdin command with it.

How I imagine scw could expose this functionality

shell command:

$ scw shell
>>> use instance server
[instance server]>>> list
ID                                    NAME                  TYPE
27133f6d-6eda-43c4-95d5-e193f1591337  scw-exciting-swirles  PRO2-XXS

flag:

$ scw shell --namespace "instance server"
[instance server]>>> list
ID                                    NAME                  TYPE
27133f6d-6eda-43c4-95d5-e193f1591337  scw-exciting-swirles  PRO2-XXS

Using stdin:

$ scw shell --namespace "instance server" << EOF
list
list state=stopped
list state=running
EOF

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions