""" import os import yaml import requests import dash_py PACKAGES_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), "packages") from bs4 import BeautifulSoup from parguments import Parguments from .installer import install_package from .utils import enable_pretty_logging, logger, resource_exist parguments = Parguments(__doc__, version=dash_py.__version__) @parguments.command def install(name): """ Usage: dash.py install <name>... Options: -h --help Show this screen and exit. """ if isinstance(name, list): return [install(n) for n in name] content = ""
catsup install <theme> catsup -h | --help catsup --version Options: -h --help Show this screen and exit. -s --settings=<file> specify a config file. [default: config.json] -f --file=<file> specify a wordpress output file. -o --output=<dir> specify a output folder. [default: .] -p --port=<port> specify the server port. [default: 8888] -g --global install theme to global theme folder. """ % catsup.__version__ from parguments import Parguments parguments = Parguments(doc, version=catsup.__version__) @parguments.command def init(path): """ Usage: catsup init [<path>] Options: -h --help Show this screen and exit. """ from catsup.parser.utils import create_config_file create_config_file(path)
import aam doc = """Aam v%s Usage: aam init aam build aam -h | --help aam --version Options: -h --help Show this screen and exit. """ % aam.__version__ from parguments import Parguments parguments = Parguments(doc, version=aam.__version__) def pre_init(): hub.root.path = os.path.dirname(__file__) hub.root.template_path = os.path.join(os.path.dirname(__file__), 'templates') hub.root.static_path = os.path.join(os.path.dirname(__file__), 'static') hub.site.path = os.getcwd() hub.site.page_path = os.path.join(hub.site.path, 'pages') hub.site.deploy_path = os.path.join(hub.site.path, 'deploy') hub.site.static_path = os.path.join(hub.site.deploy_path, 'static') @parguments.command def init():