mark command.reset-state as private (except for tests)
This commit is contained in:
parent
8d871b20b8
commit
2610930690
@ -152,7 +152,9 @@
|
|||||||
: active?
|
: active?
|
||||||
: define-command
|
: define-command
|
||||||
: on-input
|
: on-input
|
||||||
: reset-state
|
|
||||||
: invoke-interactively
|
: invoke-interactively
|
||||||
: widget
|
: widget
|
||||||
|
:_ {
|
||||||
|
: reset-state
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
(local Command (require :command))
|
(local Command (require :command))
|
||||||
|
|
||||||
(var happened false)
|
(var happened false)
|
||||||
(fn before [] (set happened false) (Command.reset-state))
|
(fn before [] (set happened false) (Command._.reset-state))
|
||||||
|
|
||||||
(Command.define-command "no-args-command" #(set happened true) [])
|
(Command.define-command "no-args-command" #(set happened true) [])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user