Skip to content

Commit

Permalink
Add quit-after-clearing-session command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrevar committed Oct 1, 2019
1 parent 43309f1 commit 09a66d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/base.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ Set to '-' to read standard input instead.")
(kill-interface *interface*)
(kill-port (port *interface*)))

(define-command quit-after-clearing-session ()
"Clear session then quit Next."
(setf
(session-store-function *interface*) nil
(session-restore-function *interface*) nil)
(uiop:delete-file-if-exists (session-path *interface*))
(kill-interface *interface*)
(kill-port (port *interface*)))

(define-deprecated-command kill ()
"Deprecated by `quit'."
(quit))
Expand Down

0 comments on commit 09a66d0

Please sign in to comment.