Skip to content

sub-sub-commands #22

@eins78

Description

@eins78

How hard would it be to support sub-sub commands with the same autocompletion and help generation via in-line comments?

I am thinking of something like sub-folders

├── bin                   # contains the main executable for your program
├── libexec               # where the subcommand executables are
   ├── sub-command        # a sub-folder, containing 'sub-command-subcommand' scripts

An example where this would be useful is a script subcommand: One could stash away specialized stuff that should not clutter the commands output.
It would also allow a simple hierarchy without glueing together the script manually.

In the blog post you have the line 37 script basecamp file_usage_summary.
Is this the same kind of thinking or just is it just one subcommand which does more or less the same thing with different arguments which happens to be called script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions