Skip to content

Commit 28d6299

Browse files
committed
fix merge
1 parent 71ad67d commit 28d6299

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

modules/backups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run_create_backup(args, user: Optional[str] = None):
4040
return subprocess.run(["bash", backup_script_path, "-u", user] + args, timeout=5)
4141

4242
def create_backup(self, args):
43-
if not check_usage_args_min_max_len("create_backup", args, 0, 2):
43+
if not check_usage_args_min_max_len("create_backup", args, 0, 3):
4444
return
4545
tmp_dir = self.create_tmp_ton_dir()
4646
command_args = ["-m", self.ton.local.buffer.my_work_dir, "-t", tmp_dir]

modules/btc_teleport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from mypylib.mypylib import run_as_root, color_print, bcolors, print_table
77
from mytonctrl.console_cmd import add_command, check_usage_one_arg, check_usage_args_min_max_len
88
from mytonctrl.utils import get_current_user
9+
from mytoncore.utils import get_package_resource_path
910

1011

1112
class BtcTeleportModule(MtcModule):

mytonctrl/console_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"disable_mode": "<mode_name>",
1313
"about": "<mode_name>",
1414
"get": "<setting_name>",
15-
"set": "<setting_name> <value>",
15+
"set": "<setting_name> <value> [--force]",
1616
"create_backup": "[filename] [-u <user>]",
1717
"restore_backup": " <filename> [-y] [--skip-create-backup] [-u <user>]",
1818
"add_custom_overlay": "<name> <path_to_config>",

mytonctrl/mytonctrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
)
4343
from mytoncore.utils import get_package_resource_path
4444
from mytoncore.telemetry import is_host_virtual
45-
from mytonctrl.console_cmd import add_command, check_usage_one_arg, check_usage_two_args
45+
from mytonctrl.console_cmd import add_command, check_usage_one_arg, check_usage_two_args, check_usage_args_min_max_len
4646
from mytonctrl.migrate import run_migrations
4747
from mytonctrl.utils import GetItemFromList, timestamp2utcdatetime, fix_git_config, is_hex, GetColorInt, \
4848
pop_user_from_args, pop_arg_from_args
@@ -1019,7 +1019,7 @@ def GetSettings(ton, args):
10191019
#end define
10201020

10211021
def SetSettings(local, ton, args):
1022-
if not check_usage_two_args("set", args):
1022+
if not check_usage_args_min_max_len("set", args, min_len=2, max_len=3):
10231023
return
10241024
name = args[0]
10251025
value = args[1]

0 commit comments

Comments
 (0)