Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/n/a/Naked-0.1.30/lib/Naked/commands/args.py   Naked(Download)
#!/usr/bin/env python
# encoding: utf-8
 
from Naked.commandline import Command
from Naked.toolshed.system import exit_success
    def run(self):
        cmd_list = shlex.split(self.com_string)
        c = Command(cmd_list[0], cmd_list[1:])
        print(' ')
        print("•naked• Assuming that your Command object is instantiated as an instance named 'c', the command that you entered would be parsed as follows:")

src/n/a/Naked-0.1.30/lib/Naked/app.py   Naked(Download)
def main():
    import sys
    from Naked.commandline import Command
    #from Naked.toolshed.state import StateObject
    from Naked.toolshed.system import stderr
    #   used for all subsequent conditional logic in the CLI application
    #------------------------------------------------------------------------------------------
    c = Command(sys.argv[0], sys.argv[1:])
    #------------------------------------------------------------------------------
    # [ Instantiate state object ]

src/s/t/status-0.2.4/lib/status/app.py   status(Download)
def main():
    import sys
    from Naked.commandline import Command
    #from Naked.toolshed.state import StateObject
    from Naked.toolshed.system import stderr, exit_success, exit_fail
    #   used for all subsequent conditional logic in the CLI application
    #------------------------------------------------------------------------------------------
    c = Command(sys.argv[0], sys.argv[1:])
    #------------------------------------------------------------------------------
    # [ Instantiate state object ]

src/h/e/helpy-1.0.1/lib/helpy/app.py   helpy(Download)
def main():
    import sys
    from Naked.commandline import Command
 
    #------------------------------------------------------------------------------------------
    # [ Instantiate command line object ]
    #   used for all subsequent conditional logic in the CLI application
    #------------------------------------------------------------------------------------------
    c = Command(sys.argv[0], sys.argv[1:])