[fish] Add sure functions

This commit is contained in:
2023-03-22 21:40:21 -04:00
parent 3c3635e138
commit 59ee3e78a9
4 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
function sure-aws-login
aws sso login --profile registries-read
end

View File

@ -0,0 +1,3 @@
function sure-get-token
poetry config http-basic.codeartifact aws $PRIVATE_REPO_TOKEN
end

View File

@ -0,0 +1 @@
aws codeartifact login --namespace sureapp --tool npm --repository npm --domain sure --domain-owner 348777858795 --profile $AWS_PROFILE

View File

@ -0,0 +1,4 @@
function sure-set-token
set -x PRIVATE_REPO_TOKEN "$(aws codeartifact get-authorization-token --domain sure --query authorizationToken --output text --profile registries-read)"
poetry config http-basic.codeartifact aws $PRIVATE_REPO_TOKEN
end