rsm-hcd / AndcultureCode.Cli

and-cli command-line tool to manage the development of software applications
https://andculture.com
Apache License 2.0
14 stars 15 forks source link

Feature: Ability to recursively list commands/options #190

Closed brandongregoryscott closed 3 years ago

brandongregoryscott commented 3 years ago

Fixes #132 Utility command for recursively listing commands & options

Loops over all parent command definitions from the command definitions module, and recursively calls the CLI for each nested command to parse options. Stores the dtos in a flat list and reconstructs the tree hierarchy for printing.

Uses a cache file to speed up consecutive runs of the ls command unless intentionally skipped (or, there's no cache file, error reading, mismatched parent commands)