Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"\n"
"All your files have been put back into place. You can now"
" safely uninstall Mackup.\n"
"\n"
"Thanks for using Mackup !"
)
elif args["list"]:
# Display the list of supported applications
mckp.check_for_usable_environment()
output = "Supported applications:\n"
for app_name in sorted(app_db.get_app_names()):
output += " - {}\n".format(app_name)
output += "\n"
output += "{} applications supported in Mackup v{}".format(
len(app_db.get_app_names()), VERSION
)
print(output)
elif args["show"]:
mckp.check_for_usable_environment()
app_name = args[""]
# Make sure the app exists
if app_name not in app_db.get_app_names():
sys.exit("Unsupported application: {}".format(app_name))
print("Name: {}".format(app_db.get_name(app_name)))
print("Configuration files:")
for file in app_db.get_files(app_name):
print(" - {}".format(file))
# Delete the tmp folder
def main():
"""Main function."""
# Get the command line arg
args = docopt(__doc__, version="Mackup {}".format(VERSION))
mckp = Mackup()
app_db = ApplicationsDatabase()
def printAppHeader(app_name):
if verbose:
print(("\n{0} {1} {0}").format(header("---"), bold(app_name)))
# If we want to answer mackup with "yes" for each question
if args["--force"]:
utils.FORCE_YES = True
dry_run = args["--dry-run"]
verbose = args["--verbose"]
"""Setup file to automate the install of Mackup in the Python environment."""
from setuptools import setup
from mackup.constants import VERSION
setup(
name="mackup",
version=VERSION,
author="Laurent Raufaste",
author_email="analogue@glop.org",
url="https://github.com/lra/mackup",
description="Keep your application settings in sync (OS X/Linux)",
keywords="configuration config dotfiles sync backup dropbox gdrive box",
license="GPLv3",
packages=["mackup"],
install_requires=["docopt", "six"],
entry_points={"console_scripts": ["mackup=mackup.main:main"]},
package_data={"mackup": ["applications/*.cfg"]},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
(
"License :: OSI Approved :: "