资 源 简 介
Squires is a Python library which simplifies the creation of powerful self-documenting command line interfaces.
Features
Scripts using Squires have the following features in their interface:
Full readline bindings.
Tab completion of commands and their options.
Inline command help (is press tab to see description of allowable.
Option syntax validation.
Hidden commands and options.
The combination of the above features attempts to emulate the feel of the Cisco(tm) CLI in your own scripts.
On the inside, programmers using Squires can enjoy these features:
Class based hierarchial command tree.
One-line command creation.
Boolean and key/value options.
Option autocompletes via either static list, regex or dynamic method.
Hidden commands, for debug, easter egg, or similar commands.
Custom prompt strings.
Squires was developed