def ask(d: Dict) -> None: if len(d) > 0: if d.get('start', '') == 'start': return start.main(sys.argv[1:]) if d.get('start', '') == 'server': return server.main(sys.argv[1:]) if d.get('start', '') == 'install' : return install.main(sys.argv[1:]) if d.get('start', '') == 'version' : print('Pytonik %s' % Version.VERSION_TEXT) if d.get('start', '') == 'doc' or d.get('start', '') =="docs": return doc.main(sys.argv[1:]) if d.get('start', '') == 'quit': return sys.exit(-1) if d.get('start', '') == 'all': return help_notes() if d.get('quit', '') is True: return sys.exit(-1) else: return help_notes()
# Author : BetaCodings # Author : [email protected] # Maintainer By: Emmanuel Martins # Maintainer Email: [email protected] # Created by BetaCodings on 13/01/2020. import sys from pytonik.cmd import start from pytonik.cmd import server from pytonik.cmd import doc from pytonik.cmd import install from pytonik.cmd import help if __name__ == '__main__': sys.exit(start.main(sys.argv[1:])) if __name__ == '__main__': sys.exit(server.main(sys.argv[1:])) if __name__ == '__main__': sys.exit(doc.main(sys.argv[1:])) if __name__ == '__main__': sys.exit(install.main(sys.argv[1:])) if __name__ == '__main__': sys.exit(help.main(sys.argv[1:]))