diff --git a/config/exports-secret.example b/config/exports-secret.example new file mode 100644 index 0000000..7abaec6 --- /dev/null +++ b/config/exports-secret.example @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# +# This file is secret and wont be added to the git repo. + +export GITLAB_API_TOKEN="" +export GREN_GITHUB_TOKEN="" diff --git a/local/bin/dfm b/local/bin/dfm index 4d659f6..208e79f 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -133,6 +133,12 @@ function section_dotfiles USAGE_PREFIX="$SCRIPT dotfiles" case "$1" in + fmt) + msg_ok "Running all formatters" + $0 dotfiles yamlfmt + $0 dotfiles shfmt + msg_done "...done!" + ;; reset_all) msg_ok "Running all reset commands" $0 dotfiles reset_nvim @@ -174,7 +180,8 @@ function section_dotfiles msg_done "🎉 dotfiles have been shfmt formatted!" ;; *) - menu_section "$USAGE_PREFIX" "reset_all | reset_nvim | yamlfmt | shfmt" + menu_section "$USAGE_PREFIX" "fmt | reset_all | reset_nvim | yamlfmt | shfmt" + menu_item "fmt" "Run all formatters" menu_item "reset_all" "Reset everything, runs all configured reset actions" menu_item "reset_nvim" "Resets nvim. Deletes caches, removes nvim folders and relinks nvim folders" menu_item "yamlfmt" "Run yamlfmt to all dotfiles, which are in our control" diff --git a/scripts/install-go-packages.sh b/scripts/install-go-packages.sh index 8a24419..d487ab1 100755 --- a/scripts/install-go-packages.sh +++ b/scripts/install-go-packages.sh @@ -12,6 +12,8 @@ else github.com/skx/sysbox@latest github.com/dotzero/git-profile@latest github.com/google/yamlfmt/cmd/yamlfmt@latest + github.com/ericchiang/pup@latest + github.com/suntong/html2md@latest ) for pkg in "${packages[@]}"; do