oxidecomputer / oxide.rs

The Oxide Rust SDK and CLI
Mozilla Public License 2.0
38 stars 13 forks source link

add OXIDE_PROJECT, OXIDE_VPC etc to stop always having to type --project, --vpc etc... #714

Open Smithx10 opened 3 months ago

Smithx10 commented 3 months ago

Target component

Overview

When using the CLI I'd like to be able to provide --vpc or --project as an env var or set them via the cli. Having to always provide --vpc or --project interrupts me from just typing commands. In my workflow I'm typically going to be working within a project... so being able to quickly oxide inst list, or oxide vpc list without having to type --project or always have to ctrl + r back. If there is a way to currently do this, I apologize in advance for opening this.

Implementation details

No response

Anything else you would like to add?

No response

ahl commented 3 months ago

This is a great idea; I'm going to look into some options regarding how we make this sort of default easy to specify.