-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `describe-creds` command aims to provide information about the current shell environment. It could be run separately, configured as the default command, and always runs after the `session-ic`. The new Elegant Git workflows automate additional development routines.
- Loading branch information
Showing
6 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-work-after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-work-ahead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
# This workflow installs the new updated script after every commit. | ||
set -o errexit | ||
set -o pipefail | ||
if test "$USER" != "extsoft"; then | ||
echo "No installation allowed for '$USER'." | ||
exit | ||
fi | ||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
install -v -m 755 aws-creds.py /usr/local/bin/aws-creds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/usr/bin/env sh -e | ||
#!/usr/bin/env bash | ||
# This script invokes ahead of the 'save-work' execution. | ||
set -o errexit | ||
set -o pipefail | ||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
which -s ruff || (echo "ruff is not installed" && exit 1) | ||
ruff check --config line-length=120 --fix aws-creds.py || \ | ||
ruff check --config line-length=120 --add-noqa aws-creds.py | ||
ruff check --config line-length=120 --fix aws-creds.py || | ||
ruff check --config line-length=120 --add-noqa aws-creds.py | ||
ruff format --config line-length=120 aws-creds.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters