Create null callback for group-only subcommands #3

Closed
opened 2023-09-01 23:56:14 -06:00 by torque · 1 comment
Owner

Subcommands that act only as a group layer (i.e. don't have any options or arguments) still need a callback, but it usually does nothing. Having to write this repeatedly is silly as it is trivial to automatically produce a function that does nothing.

It might be interesting to see if group-only commands can easily avoid calling a callback at all.

Subcommands that act only as a group layer (i.e. don't have any options or arguments) still need a callback, but it usually does nothing. Having to write this repeatedly is silly as it is trivial to automatically produce a function that does nothing. It might be interesting to see if group-only commands can easily avoid calling a callback at all.
torque added this to the 0.1.0 milestone 2023-09-01 23:56:14 -06:00
torque added the
Kind/Enhancement
label 2023-09-01 23:56:14 -06:00
torque self-assigned this 2023-09-01 23:56:14 -06:00
Author
Owner

introduced in 76e8dedf14.

introduced in 76e8dedf145f53ac89d01a74759c89b9d7e92712.
Sign in to join this conversation.
No description provided.