2 Commits
Author SHA1 Message Date
DrClaw c28be15ed6 ... 2020-02-19 01:51:02 +01:00
DrClaw 3e980c9d14 Unbound mod variablewq 2020-02-19 01:12:31 +01:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/bash #!/usr/bin/bash
#test
_action(){ _action(){
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=${COMP_WORDS[COMP_CWORD]}
+1 -1
View File
@@ -33,10 +33,10 @@ class ConsoleScript(cli2.ConsoleScript):
self.exit_code = 1 self.exit_code = 1
return return
shlaxfile = mod.__file__ shlaxfile = mod.__file__
self._doc = inspect.getdoc(mod)
self.shlaxfile = Shlaxfile() self.shlaxfile = Shlaxfile()
self.shlaxfile.parse(shlaxfile) self.shlaxfile.parse(shlaxfile)
self._doc = inspect.getdoc(mod)
if 'main' in self.shlaxfile.actions: if 'main' in self.shlaxfile.actions:
action = self.shlaxfile.actions['main'] action = self.shlaxfile.actions['main']
for name, child in self.shlaxfile.actions['main'].menu.items(): for name, child in self.shlaxfile.actions['main'].menu.items():