Skip to content

Commit

Permalink
fix: ignore case for bit_interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswalz-bg committed Apr 15, 2021
1 parent 440a72e commit 5efae26
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/bit_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ var BitCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
suggestionTree, bitCmdMap := CreateSuggestionMap(cmd)

repeat := os.Getenv("BIT_INTERACTIVE") == "TRUE"
repeat := strings.ToLower(os.Getenv("BIT_INTERACTIVE")) == "true"
repeatAmount := 1
if repeat {
repeatAmount = 5000
}


for i := repeatAmount; i > 0; i-- {
for i := repeatAmount; i > 0; i-- {
resp := SuggestionPrompt("> bit ", shellCommandCompleter(suggestionTree))
subCommand := resp
if subCommand == "" {
Expand Down

0 comments on commit 5efae26

Please sign in to comment.