aboutsummaryrefslogtreecommitdiffstats
path: root/commands/prompt.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/prompt.go')
-rw-r--r--commands/prompt.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/commands/prompt.go b/commands/prompt.go
index 4fcf8a80..9ab2aac1 100644
--- a/commands/prompt.go
+++ b/commands/prompt.go
@@ -12,7 +12,11 @@ type Prompt struct {
}
func init() {
- register(Prompt{})
+ Register(Prompt{})
+}
+
+func (Prompt) Context() CommandContext {
+ return GLOBAL
}
func (Prompt) Aliases() []string {
@@ -20,7 +24,7 @@ func (Prompt) Aliases() []string {
}
func (*Prompt) CompleteCommand(arg string) []string {
- return FilterList(GlobalCommands.Names(), arg, nil)
+ return FilterList(ActiveCommandNames(), arg, nil)
}
func (p Prompt) Execute(args []string) error {