- parser = argparse.ArgumentParser(description="Script to control linuxmuster-linuxclient7")
-
- subparsers = parser.add_subparsers(title='Tasks', metavar="<task>", help="The task to execute", dest="task", required=True)
-
- subparserCache = subparsers.add_parser('setup', help='Initially setup linuxmuster-linuxclient7 and join a domain (equivalient to linuxmuster-linuxclient7-setup in previous versions)')
- subparserCache.add_argument("-d", "--domain", help="Override the domain to be joined", default=None)
- subparserCache.add_argument("-u", "--user", help="Override the user to join the domain", default=None)
-
- subparserCache = subparsers.add_parser('status', help='Show the current status of linuxmuster-linuxclient7')
-
- subparserCache = subparsers.add_parser('clean', help='Leave domain and clean all remanings so is is safe to uninstall linuxmuster-linuxclient7. This is called automatically on package removal.')
- subparserCache = subparsers.add_parser('upgrade', help='Upgrade templates and services. This is called automatically on package upgrade.')
-
- subparserCache = subparsers.add_parser('prepare-image', help='Prepare for creating an image. This will clear the local user cache and delete all user home dirs (equivalient to linuxmuster-client-prep-image in previous versions)')
- subparserCache.add_argument("-y", "-u", "--unattended", help="Clean everything without user input", action="store_true")
-
- subparserCache = subparsers.add_parser('print-logs', help='Print all relevant logs of linuxmuster-client-adssso')
- subparserCache.add_argument("-c", "--compact", help="Remove the timestamp and hostname", action="store_true")
- subparserCache.add_argument("-a", "--anonymize", help="Replace the domain and realm", action="store_true")
-
- subparserCache = subparsers.add_parser('get-constant', help='print out a constant')