Skip to content

Commit

Permalink
"TradeGitty" command template
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 1, 2014
1 parent 2daa3b5 commit bf48738
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions commands/TEMPLATE.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
from commands.commandenv import ResultRow
from commands import MutuallyExclusiveGroup, ParseArgument
from formatting import RowFormat, ColumnFormat

######################################################################
# Parser config

help=#'Terse description of command'
name=#'cmd'
epilog=#None
arguments = [
#ParseArgument('near', help='System to start from', type=str),
]
switches = [
#ParseArgument('--ly-per',
# help='Maximum light years per jump.',
# dest='maxLyPer',
# metavar='N.NN',
# type=float,
# ),
]

######################################################################
# Helpers

######################################################################
# Perform query and populate result set

def run(results, cmdenv, tdb):

### TODO: Implement

return results

######################################################################
# Transform result set into output

def render(results, cmdenv, tdb):
### TODO: Implement

0 comments on commit bf48738

Please sign in to comment.