ENH: Sort ExtensionWizard.py --listTemplates

Change TemplateManager.listTemplates method to sort the list of
templates per category, rather than outputting in the semi-arbitrary
order of dict. (The categories come from a list, which retains the
declaration order - which is likely to be a meaningful, semantic
ordering that is at least as good as a lexical sorting - and so do not
need to be sorted.)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22974 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Use 'git credentials' in GithubHelper.py

Change GithubHelper.py to use 'git credentials' to get the login
information for github. This way we are not only handling this
information in the same manner as git, but we leverage its credentials
storage system as well. (The downside is that the user name is no longer
automatically stored permanently if the user is not using a password
manager.)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22975 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Remove silly shebangs

Remove shebangs ("#!/usr/bin/env python") from Python module code. These
are not meant to be executed directly, so shebangs are not appropriate.
(Their presence is almost certainly accidental.)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22976 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Document SlicerWizard/Utilities.py

Add documentation for the public API of SlicerWizard.Utilities. Also,
fix some minor code issues revealed in the course of writing the same:

- Use sys.exit instead of exit
- Remove unused 'clone' parameter from getRepo

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22977 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Document SlicerWizard/GithubHelper.py

Add documentation for the public API of SlicerWizard.GithubHelper. Also,
fix some code issues revealed in the course of writing the same:

- CredentialToken class is private; name should start with '_'
- CredentialToken did not output values added from text input
- logIn() function doesn't need a repository; it can be optional
- logIn() was not failing as expected in case of authentication failure
- getPullRequest() should accept additional criteria

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22978 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Document SlicerWizard/CMakeParser.py

Add documentation of SlicerWizard.CMakeParser. Tweak an exception
message that I noticed in the process could be improved.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22979 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Make ExtensionProject.project a property

Change the project() method of ExtensionProject to a property, and
update uses accordingly.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22980 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: fix indent

Fix indentation of __all__ values in GithubHelper.py and Utilities.py,
which were using four spaces instead of two due to being copied from
another location that uses four-space indent.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22981 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix CMakeParser.py parsing

Add some additional escapes which were not being handled. Remove
attempts to parse expansions; AFAICT they don't impact argument
splitting (which is what we really care about), and the existing logic
was inadequate.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22982 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Document SlicerWizard/ExtensionProject.py

Add documentation for the public API of SlicerWizard.ExtensionProject.
Also, fix some code issues revealed in the course of writing the same:

- Merge superfluous private helper method into public method
- Change getValue() to return the value from the last 'set()'
- Allow use in 'with'

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22983 3bd1e089-480b-0410-8dfb-8563597acbee