canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 73 forks source link

Feature: accept token to `pro attach` via environment variable #3166

Open orndorffgrant opened 3 months ago

orndorffgrant commented 3 months ago

Please describe the scenario where the new feature would be useful

pro attach $token isn't ideal because the token ends up in cmdline.

Describe the solution you'd like

Perhaps pro attach with no flags (or maybe a flag name to be bikeshedded) would use a token in a UBUNTU_PRO_TOKEN environment variable, if present, for attaching.

Current behavior

There are several alternatives for attaching, but this may be an simpler method of attachment for some users.