Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Develop #1

Merged
merged 5 commits into from

2 participants

@srathbun

Refactored out the init_parser method, and the settings. There are still issues, such as the self methods needing to be updated, but on the whole it seems ready for you to look over.

The intent is to pull out the parser and settings into their own objects. This allows a cmd2 instance to have multiple "states" the user can switch between if necessary, as well as obfuscating away the details of handling the parser and settings.

srathbun added some commits
@srathbun srathbun added vim scripts for project plugin. Eases following coding style us…
…ed in project.
2c227a1
@srathbun srathbun moved all Cmd class level settings into the state class. Migrated all…
… init settings to link to currState, which points to the initialized defaultState.
22d8159
@srathbun srathbun moved init_parser method into input_parser. 6538324
@srathbun srathbun pulled parser out of cmd2. Pulled settings out of cmd2. Modifed parse…
…r test for new code. Parser does not return quite correct results, but most of it seems functional. Stll need to go through cmd2 methods and change self methods to point to currState.
1e2daf8
@srathbun srathbun added vim swp files to gitignore. ab74864
@Zearin
Owner

Oh, you are freakin’ awesome, Spencer! ☺

(Aside: How odd…I’ve never actually received a pull request before. It feels a little weird to be on this side of the fence…)

@Zearin Zearin merged commit cdd6e3c into Zearin:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 16, 2012
  1. @srathbun
Commits on Apr 17, 2012
  1. @srathbun

    moved all Cmd class level settings into the state class. Migrated all…

    srathbun authored
    … init settings to link to currState, which points to the initialized defaultState.
  2. @srathbun
  3. @srathbun

    pulled parser out of cmd2. Pulled settings out of cmd2. Modifed parse…

    srathbun authored
    …r test for new code. Parser does not return quite correct results, but most of it seems functional. Stll need to go through cmd2 methods and change self methods to point to currState.
  4. @srathbun
Something went wrong with that request. Please try again.