-
Notifications
You must be signed in to change notification settings - Fork 721
Open
Labels
area/clilimactl CLI user experiencelimactl CLI user experience
Description
Copied from #4036
Optional (can be added after 2.0), but I think worthwhile and easy to implement:
- Add
--allow-env PATTERNand--block-env PATTERNoptions tolimactl shell.
They would (just for this command) append the pattern to the respective lists and automatically enable --preserve-env.
These commands:
limactl shell --allow-env "GITHUB_TOKEN" default gh ...
limactl shell --block-env "PRIVATE*" default ...would be equivalent to
LIMA_SHELLENV_ALLOW="$LIMA_SHELLENV_ALLOW,GITHUB_TOKEN" limactl shell --preserve-env default gh ...
LIMA_SHELLENV_BLOCK="$LIMA_SHELLENV_BLOCK,PRIVATE*" limactl shell --preserve-env default ...Except in case LIMA_SHELLENV_BLOCK was empty, it would be adding the pattern to the default list, not the empty list:
LIMA_SHELLENV_BLOCK="+PRIVATE*" limactl shell --preserve-env default ...Metadata
Metadata
Assignees
Labels
area/clilimactl CLI user experiencelimactl CLI user experience