Age | Commit message (Collapse) | Author | Files | Lines |
|
The previous code had trouble with environment variables that weren't
nice for shell. Using Python avoids this. Not an ideal solution, but I
can't be bothered do avoid Python now.
|
|
This adds the bindings and step implementations for running
commands in a directory off the datadir.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Mostly this avoids writing very long lines. Long strings are broken
into multiple lines, logged separately. Various other values are also
logged as multiple log lines as well.
|
|
kwargs are logged as a dict. This helps me debug why reference.md fails.
|
|
|
|
This is a step in the right direction, but may not be enough. We'll
see.
Multi-line log messages are no multiple lines in in the log file. All
but the first one are indented.
Dictionaries are listed with one key per line. argv as one item per line.
Various log messages that are just noise removed.
|
|
feat(python lib/runcmd): run commands in sub-directory
Closes #175
See merge request larswirzenius/subplot!146
|
|
|
|
|
|
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
|
|
I don't know how this passed ./check previously. I might not have had
Black installed, maybe. Anyway, fixed now.
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Previously, step cleanup functions didn't get any step captures at
all. This made it harder to do things like a step that starts a
daemon:
- when: I start {name} in the background
function: start_daemon
cleanup: stop_daemon
The function to start the daemon gets the daemon name as an argument.
The cleanup function doesn't. How is the cleanup function to know
which daemon to stop?
The workaround has been that the start function stores the name
somewhere, but that gets tricky when a scenario may start several
daemons.
With this commit, the cleanup function gets the name as an argument,
just like the start function, and knows what to clean up.
|
|
|
|
Resources - virtual filesystem
See merge request larswirzenius/subplot!122
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
This is part of the move to embed subplot library files into the
binary to permit easy `cargo install` later.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
In readiness for the lib/ import, rearrange from a structure of
share/templates/$lang/... to be share/$lang/template/...
This will permit share/$lang/lib/ to exist later.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
In a general sense, we will want to have more than just template
files as resources. This shifts from the concept that the only
thing resource-wise that subplot has is templates, to a more general
shared resources concept without a default path beyond CWD.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|