daniele77 / cli

A library for interactive command line interfaces in modern C++
Boost Software License 1.0
1.24k stars 140 forks source link

Feature EnterAction #177

Closed Dup4 closed 1 year ago

Dup4 commented 1 year ago

We can register a function to ExitAction() to do some of the things we want to do when the session exits

So correspondingly, can we add an EnterAction() hook to do something we want to do when the session is first entered?

For example, output a welcome message, a help message, etc.

Dup4 commented 1 year ago

If this feature is approved, I can try to help implement it.

daniele77 commented 1 year ago

Ok, I think it might be useful. If you want, send a PR.

Dup4 commented 1 year ago

ok, I can try to send a PR

daniele77 commented 1 year ago

Thank you very much for your help.