Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow CommandSets to have their own user-settable settings #965
Labels
Comments
|
Started some work on the cmdset_settables branch which allows additional Settables to be added to cmd2. The issue is tracking settables added by a CommandSet to make sure they're unregistered when the CommandSet is unregistered. Probably going to take a new direction and have each CommandSet manage its own dictionary of settables. Cmd2 will search first the cmd2 dictionary, then the CommandSets. This way settables always have a lifetime linked to the CommandSet it's registered in. This does add the problem of potential duplicate names - which will be something the developer will have to be mindful of. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
do_setis limited to attributes ofcmd2.Cmdclasses. Make it possible for attributes ofCommandSetto also be settable.