From 039a9656379d6cac12c8d483fa3f817bf2e050f6 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Fri, 10 Mar 2023 23:13:23 +0100 Subject: [PATCH] Rename delete to remove --- jlmkr.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jlmkr.py b/jlmkr.py index 097aeb2..3f65598 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -34,7 +34,7 @@ IT COMES WITHOUT WARRANTY AND IS NOT SUPPORTED BY IXSYSTEMS.{NORMAL}""" DESCRIPTION = "Create persistent Linux 'jails' on TrueNAS SCALE, with full access to all files \ via bind mounts, without modifying the host OS thanks to systemd-nspawn!" -VERSION = '0.0.3' +VERSION = '0.0.4' JAILS_DIR_PATH = 'jails' JAIL_CONFIG_NAME = 'config' @@ -727,9 +727,9 @@ def create_jail(jail_name): start_jail(jail_name) -def delete_jail(jail_name): +def remove_jail(jail_name): """ - Delete jail with given name. + Remove jail with given name. """ if check_jail_name_valid(jail_name): @@ -785,8 +785,8 @@ def main(): subparsers.add_parser(name='start', epilog=DISCLAIMER).add_argument( 'name', help='name of the jail to start') - subparsers.add_parser(name='delete', epilog=DISCLAIMER).add_argument( - 'name', help='name of the jail to delete') + subparsers.add_parser(name='remove', epilog=DISCLAIMER).add_argument( + 'name', help='name of the jail to remove') subparsers.add_parser(name='list', epilog=DISCLAIMER) @@ -809,8 +809,8 @@ def main(): elif args.subcommand == 'create': create_jail(args.name) - elif args.subcommand == 'delete': - delete_jail(args.name) + elif args.subcommand == 'remove': + remove_jail(args.name) elif args.subcommand == 'list': list_jails()