summaryrefslogtreecommitdiff
path: root/share
AgeCommit message (Collapse)AuthorFilesLines
2021-05-30fix: unset environment variablesLars Wirzenius1-1/+1
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.
2021-05-19subplotlib: Add running in a subdir to runcmdDaniel Silverstone1-0/+8
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>
2021-05-01test: make Python backend logging nicerLars Wirzenius5-30/+114
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.
2021-04-25fix: improve logging in runcmd_runLars Wirzenius1-4/+8
kwargs are logged as a dict. This helps me debug why reference.md fails.
2021-04-24fix: format stringLars Wirzenius1-1/+1
2021-04-23chore: clean up log files from generated Python programsLars Wirzenius4-15/+39
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.
2021-04-12Merge branch 'runcmd_cwd' into 'main'Daniel Silverstone3-1/+38
feat(python lib/runcmd): run commands in sub-directory Closes #175 See merge request larswirzenius/subplot!146
2021-04-12fix: log content, as claimed, not regexLars Wirzenius1-1/+1
2021-04-12feat(python lib/runcmd): run commands in sub-directoryLars Wirzenius3-1/+38
2021-02-25feat: directory handling steps for Python lib/filesLars Wirzenius3-0/+80
2021-02-07rust/files: Add bindings for directoriesDaniel Silverstone1-0/+21
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-07test(lib/runcmd): verify that runcmd_prepend_to_path worksLars Wirzenius3-0/+44
2021-02-07refactor(lib/daemon.py): reformat with BlackLars Wirzenius1-3/+9
I don't know how this passed ./check previously. I might not have had Black installed, maybe. Anyway, fixed now.
2021-01-23share/rust: Add macro for step builder and use it for cleanup tooDaniel Silverstone3-29/+36
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-22feat! Python step cleanup functions now get step capturesLars Wirzenius2-3/+3
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.
2021-01-20feat: lib/daemon.py can return daemon stdout/stderr content so farLars Wirzenius3-2/+114
2021-01-16Merge branch 'vfs' into 'main'Lars Wirzenius31-0/+2251
Resources - virtual filesystem See merge request larswirzenius/subplot!122
2021-01-10subplotlib: Move steplibrary into share treeDaniel Silverstone3-0/+170
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-10resources: Move lib/* to share/python/lib/Daniel Silverstone9-0/+995
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>
2021-01-10resources: Rearrange share/ structure ready for lib importDaniel Silverstone19-0/+0
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>
2021-01-10resource: Switch from 'templates' to 'share'Daniel Silverstone19-0/+977
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>