package service const ( RELPATH_PLUGINS = "/plugins" RELPATH_PROFILES = "/profiles" RELPATH_DATA = "/data" RELPATH_METADATA = "/.makeshift" RELPATH_HELP = RELPATH_DATA + "/index.html" RELPATH_PROFILE = RELPATH_PROFILES + "/default.json" PATH_CONFIG = "$HOME/.config/makeshift/config.yaml" DEFAULT_TIMEOUT_IN_SECS = 60 DEFAULT_PLUGINS_MAX_COUNT = 32 DEFAULT_PROFILES_MAX_COUNT = 256 FILE_METADATA = `` FILE_HOME_PAGE = `
Plugin Information: Name: {{ makeshift.plugin.name }} Version: {{ makeshift.plugin.version }} Description: {{ makeshift.plugin.description }} Author: {{ makeshift.plugin.metadata.name }} ({{ makeshift.plugin.metadata.email }}) Profile Information: ID: {{ makeshift.profiles.default.id }} Description: {{ makeshift.profiles.default.description }} # setup environment variables export MAKESHIFT_HOST={{ makeshift.profiles.default.data.host }} export MAKESHIFT_PATH={{ makeshift.profiles.default.data.path }} export MAKESHIFT_ROOT={{ makeshift.profiles.default.data.server_root }} # start the service makeshift serve --root ./tests --init -l debug # download a file or directory (as archive) makeshift download makeshift download --host http://localhost:5050 --path help.txt # download files with rendering using plugins makeshift download --plugins smd,jinja2 --profile compute makeshift download -p templates --plugins jinja --profile io curl $MAKESHIFT_HOST/download/help.txt?plugins=smd,jinja2 # upload a file or directory (recursively) makeshift upload makeshift upload --host http://localhost:5050 --path help.txt # list the files in a directory makeshift list --path help.txt makeshift list --host http://localhost:5050 --path help.txt curl http://localhost:5050/list/test
` FILE_DEFAULT_PROFILE = ` { "id": "default", "description": "Makeshift default profile", "data": { "host": "localhost", "path": "/test", "server_root": "./test" } } ` ) // makeshift.host: https://localhost:5050 // makeshift.path: test // makeshift.server.root: $HOME/apps/makeshift