diff --git a/.milpa/commands/itself/command-tree.sh b/.milpa/commands/itself/command-tree.sh index df55873..4a6574f 100644 --- a/.milpa/commands/itself/command-tree.sh +++ b/.milpa/commands/itself/command-tree.sh @@ -14,7 +14,11 @@ set -o pipefail -@milpa.log info "looking for commands with prefix <$MILPA_ARG_PREFIX>" +if [[ "$MILPA_ARG_PREFIX" ]]; then + @milpa.log info "looking for commands with prefix <$MILPA_ARG_PREFIX>" +else + @milpa.log info "looking for all known commands" +fi function get_tree () { "$MILPA_COMPA" __inspect \ diff --git a/internal/render/render.go b/internal/render/render.go index b506997..2df9e28 100644 --- a/internal/render/render.go +++ b/internal/render/render.go @@ -17,6 +17,7 @@ import ( "os" "github.com/charmbracelet/glamour" + "github.com/sirupsen/logrus" _c "github.com/unrob/milpa/internal/constants" "github.com/unrob/milpa/internal/runtime" "golang.org/x/term" @@ -35,7 +36,8 @@ func Markdown(content []byte, withColor bool) ([]byte, error) { width, _, err := term.GetSize(0) if err != nil { - return content, err + logrus.Debugf("Could not get terminal width") + width = 80 } var styleFunc glamour.TermRendererOption