new dirwalk module and dockerfile updates #6
Annotations
2 errors and 1 warning
/home/runner/work/FFM/FFM/commands/replacement_commands.py#L512
shell_exec("python3 %s %s" % (self.work_file, self.path), print_output=True)
# get rid of our artifact
shell_exec("rm %s" % (self.work_file))
-
class DirWalk(Command):
def __init__(self, *args, **kwargs):
self.path = None
if len(args) == 2:
- self.path = args[1]
+ self.path = args[1]
else:
raise RuntimeError(
"Received %d argument(s), expected 2. !dirwalk <path>" % len(args)
)
|
/home/runner/work/FFM/FFM/commands/replacement_commands.py#L544
@staticmethod
def usage():
return "Usage: !dirwalk [directory-to-start-at]"
def execute(self):
- shell_exec("ls -R {} 2>/dev/null | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'".format(self.path), print_output=True)
-
+ shell_exec(
+ "ls -R {} 2>/dev/null | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'".format(
+ self.path
+ ),
+ print_output=True,
+ )
register_plugin(GetOS)
register_plugin(PtySpawn)
register_plugin(Debug)
|
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|