From faa8c0fe26441d57b42fcb9bcf47781e8ba32058 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 23 Jun 2026 14:02:40 +0200 Subject: [PATCH] fix typo --- cmd/api.go | 2 +- commandtree.sh | 31 ------------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100755 commandtree.sh diff --git a/cmd/api.go b/cmd/api.go index 4a52177..1d329a9 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -28,7 +28,7 @@ import ( func Api(conf *cfg.Config) *cli.Command { return &cli.Command{ Name: "api", - Usage: "manage apiuments", + Usage: "api access and documentation", Commands: []*cli.Command{ ApiList(conf), diff --git a/commandtree.sh b/commandtree.sh deleted file mode 100755 index fb8748b..0000000 --- a/commandtree.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -getcommands() { - local command - command="$*" - - if ! test "$command" = "help"; then - ./esctl $command -h | sed -e '/^COMMANDS:/,/^$/!d;//d' -e 's/^ //' -e 's/[, ].*//' | sort - fi -} - -printcommands() { - local indent basecommand commands command - indent="$1" - basecommand="$2" - commands="$3" - - for command in $commands; do - echo "$indent" "$command" - - commands=$(getcommands $basecommand $command) - - if test -n "$commands"; then - printcommands "${indent} " "$basecommand $command" "$commands" - fi - done -} - - -commands=$(getcommands "") -printcommands "" "" "$commands"