mise.toml
This commit is contained in:
parent
62b88cb975
commit
cc6a4949a6
1 changed files with 25 additions and 0 deletions
25
terraform/.mise.toml
Normal file
25
terraform/.mise.toml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[[hooks.enter]]
|
||||||
|
shell = "fish"
|
||||||
|
script = """
|
||||||
|
set -gx YC_TOKEN (yc iam create-token)
|
||||||
|
set -gx YC_CLOUD_ID (yc config get cloud-id)
|
||||||
|
set -gx YC_FOLDER_ID (yc config get folder-id)
|
||||||
|
"""
|
||||||
|
[[hooks.leave]]
|
||||||
|
shell = "fish"
|
||||||
|
script = """
|
||||||
|
set -e YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
|
||||||
|
"""
|
||||||
|
|
||||||
|
[[hooks.enter]]
|
||||||
|
shell = "zsh"
|
||||||
|
script = """
|
||||||
|
export YC_TOKEN=$(yc iam create-token)
|
||||||
|
export YC_CLOUD_ID=$(yc config get cloud-id)
|
||||||
|
export YC_FOLDER_ID=$(yc config get folder-id)
|
||||||
|
"""
|
||||||
|
[[hooks.leave]]
|
||||||
|
shell = "zsh"
|
||||||
|
script = """
|
||||||
|
unset YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
|
||||||
|
"""
|
Loading…
Reference in a new issue