Skip to content

Commit

Permalink
add a command to write package and cask dependency tree
Browse files Browse the repository at this point in the history
  • Loading branch information
dchakro committed Aug 12, 2024
1 parent 8ca6f92 commit c3374a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brewlog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ OPTIONS:
--help Show help
--brew-help Show brew commands (alias to "brew help")
version Show brewlog version info
tree Write the dependency tree of all installed packages & casks to a file
archive Archives the current log file as .xz (gzip as fallback if xz not found)
find [TERM] grep the TERM in the logfile.
tail [-n INT] Show the last "INT" lines from the log file.
Expand Down Expand Up @@ -75,6 +76,10 @@ elif [ "$1" == "--brew-help" ]; then
elif [ "$1" == "version" ]; then
VERSION
exit 0;
elif [ "$1" == "tree" ]; then
brew deps --tree --installed >> $HOME/Logs/brew_tree.txt
echo "package and cask dependency tree updated. Find it here: ~/Logs/brew_tree.txt"
exit 0;
elif [ "$1" == "tail" ]; then
if [ "$2" == "-n" ]; then
# tail with specified number of lines
Expand Down

0 comments on commit c3374a2

Please sign in to comment.