Skip to content

Commit

Permalink
Move columnise from misc-functions into shared-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbailey committed Oct 2, 2024
1 parent f195b01 commit 22db96f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
22 changes: 0 additions & 22 deletions lib/misc-functions

This file was deleted.

8 changes: 8 additions & 0 deletions lib/shared-functions
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ skim-stdin() {

}

columnise() {
if [[ $BMA_COLUMNISE_ONLY_WHEN_TERMINAL_PRESENT == 'true' ]] && ! [[ -t 1 ]]; then
cat
else
column -t -s $'\t'
fi
}

__bma-using-aws-cli-v1() {
aws --version | grep 'aws-cli/1' &>/dev/null
}
Expand Down

0 comments on commit 22db96f

Please sign in to comment.