Skip to content

Commit

Permalink
shell/kind: add unknown shell kind
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed May 5, 2024
1 parent 7921b8d commit dddcf03
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions shell/kind/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ type Kind string

// Define constants for ShellKind here, based on your needs, e.g., Bash, Zsh, etc.
const (
Bash Kind = "bash"
Zsh Kind = "zsh"
Dash Kind = "dash"
Fish Kind = "fish"
Bash Kind = "bash"
Zsh Kind = "zsh"
Dash Kind = "dash"
Fish Kind = "fish"
Unknown Kind = "unknown"
)

// ShellKindFromString tries to match a string to a shell Kind.
Expand All @@ -23,5 +24,5 @@ func ShellKindFromString(name string) (Kind, bool) {
case "fish":
return Fish, true
}
return "", false
return Unknown, false
}

0 comments on commit dddcf03

Please sign in to comment.