File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
class ConfigCommand :
12
12
def get (self , key ):
13
13
"""Get the value of a specific remote instance config key"""
14
+ log .debug (f"ConfigCommand.get: ({ key = } )" )
14
15
return ServerConfig .get (key = key )
15
16
16
17
def set (self , key , value ):
17
18
"""Set the value of a specific remote instance config key"""
19
+ log .debug (f"ConfigCommand.set: ({ key = } )" )
18
20
ServerConfig .set (key = key , value = value )
19
21
click .secho (f"Successfully set '{ key } ' to '{ value } '" , fg = "green" )
20
22
21
23
def pull (self ):
22
24
"""Copy remote instance configuration values to local config"""
25
+ log .debug ("ConfigCommand.pull" )
23
26
server_configs = ServerConfig .getall ()
24
27
25
28
config = Config ()
@@ -39,6 +42,7 @@ def pull(self):
39
42
40
43
def push (self ):
41
44
"""Save local instance configuration values to remote CTFd instance"""
45
+ log .debug ("ConfigCommand.push" )
42
46
config = Config ()
43
47
if config .config .has_section ("instance" ) is False :
44
48
config .config .add_section ("instance" )
You can’t perform that action at this time.
0 commit comments