Skip to content

Commit 2ef49f1

Browse files
ugyabiosoft
authored andcommitted
Added an accessor for the shell's multiChoiceActive attribute (#100)
1 parent 285bf84 commit 2ef49f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ishell.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ func (s *Shell) Wait() {
104104
<-s.haltChan
105105
}
106106

107+
// MultiChoiceActive returns true if the shell is in the multi choice selection mode
108+
func (s *Shell) MultiChoiceActive() bool {
109+
return s.multiChoiceActive
110+
}
111+
107112
// RootCmd returns the shell's root command.
108113
func (s *Shell) RootCmd() *Cmd {
109114
return s.rootCmd

0 commit comments

Comments
 (0)