From 261093069039bc41981a392df10121fbe24dba4c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 23 Dec 2022 19:52:40 +0000 Subject: [PATCH] mark command.reset-state as private (except for tests) --- command.fnl | 4 +++- test/command.fnl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/command.fnl b/command.fnl index 2a02ea7..b99ff0c 100644 --- a/command.fnl +++ b/command.fnl @@ -152,7 +152,9 @@ : active? : define-command : on-input - : reset-state : invoke-interactively : widget + :_ { + : reset-state + } } diff --git a/test/command.fnl b/test/command.fnl index 621fb71..8e64db9 100644 --- a/test/command.fnl +++ b/test/command.fnl @@ -3,7 +3,7 @@ (local Command (require :command)) (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) [])