scaleway-cli
scaleway-cli copied to clipboard
Add an option to open the web console for a given resource
Description
Sometimes when I'm using the CLI I would like to quickly open a web browser to go to the console on a given resource page.
Could it be possible for each command to have a default webpage where the CLI send the user when passed a --web option.
How this functionality would be exposed
scw instance --webwould openhttps://console.scaleway.com/instancescw rdb instance list --webwould openhttps://console.scaleway.com/rdb/instances/with the right zone
References
Version
Version 2.3.1 BuildDate unknown GoVersion go1.16.4 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin
Is the structure of the url always https://console.scaleway.com/arg1/arg2/argN or does it need to be hardcoded for each command?