mark command.reset-state as private (except for tests)

This commit is contained in:
Daniel Barlow 2022-12-23 19:52:40 +00:00
parent 8d871b20b8
commit 2610930690
2 changed files with 4 additions and 2 deletions

View File

@ -152,7 +152,9 @@
: active? : active?
: define-command : define-command
: on-input : on-input
: reset-state
: invoke-interactively : invoke-interactively
: widget : widget
:_ {
: reset-state
}
} }

View File

@ -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) [])