Replies: 1 comment 2 replies
-
|
You could try creating your alias differently. alias docker_main_app_sh = if ($env_name == "cicd") { docker exec my_app sh } else { docker exec -ti my_app sh }} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
On Makefile I often use a global flag/argument to control certain definitions based on my environment.
An example is to either use or not the
-tiflags from docker exec:and execute it as:
make container_app_run_some_internal_cmd env_name=cicdmake container_app_run_some_internal_cmd env_name=whateverMy question: Is it possible to recreate such logic in nushell?
and execute it as:
nu some_script.nu container_app_run_some_internal_cmd --env_name=cicdor maybe
nu some_script.nu --env_name=cicd container_app_run_some_internal_cmdBeta Was this translation helpful? Give feedback.
All reactions