Closed
Description
We've made a lot of significant improvements in recent releases but some of our examples are still lagging behind a lot. There are cases where the examples no longer represent the easiest/cleanest solution or what we currently consider to be best practices when using cmd2.
- Assess each example and annotate any updates needed
- Identify examples that should be removed, simplified, split apart, or combined.
- Add a README.md in the
examples
directory to help walk people through what's here. Identify which example to start with, and then group/describe the other examples
Example | Action | Notes |
---|---|---|
alias_startup.py | ||
arg_decorators.py | remove/combine? | Seems very similar to decorator_example.py |
arg_print.py | ||
argparse_completion.py | ||
async_printing.py | ||
basic.py | Compare with first_app.py and hello_cmd2.py |
|
basic_completion.py | ||
cmd2_history.dat | ||
cmd_as_argument.py | Seems similar to decorator_example.py |
|
colors.py | ||
custom_parser.py | ||
decorator_example.py | remove/combine? | Seems very similar to arg_decorators.py and decorator_example.py |
dynamic_commands.py | ||
environment.py | ||
event_loops.py | ||
example.py | Also seems to overlap a lot with decorator_example.py |
|
exit_code.py | ||
first_app.py | remove/combine? | Seems similar to hello_cmd2.py |
hello_cmd2.py | remove/combine? | Seems similar to first_app.py |
help_categories.py | ||
hooks.py | ||
initialization.py | ||
issue986.py | ||
migrating.py | ||
modular_commands_basic.py | ||
modular_commands_dynamic.py | ||
modular_commands_main.py | ||
modular_subcommands.py | ||
override_parser.py | ||
paged_output.py | ||
persistent_history.py | ||
pirate.py | ||
plumbum_colors.py | ||
python_scripting.py | ||
remove_builtin_commands.py | ||
remove_settable.py | ||
subcommands.py | Update | Use modular_subcommands.py as reference. * swap getattr(args, 'func') for args.cmd2_handler.get() |
table_creation.py | ||
unicode_commands.py |