Expand description
Management commands for resource files: list / add / delete / show / where.
These functions back the zig resources … subcommands. They operate on the
same tiered layout that crate::resources::ResourceCollector consumes at
run time:
~/.zig/resources/_shared/— the global shared tier~/.zig/resources/<workflow>/— the global per-workflow tier<git-root>/.zig/resources/— the project (cwd) tier
Inline resources declared in .zwf files are not manipulated by these
commands — they live inside the workflow file itself and the user edits
them by hand.
Structs§
- Listed
Resource - A single resource entry returned by
list_resources.
Enums§
- Resource
Scope - Which tier(s) a
listorwherecommand should consider. - Resource
Target - Where an
addordeletecommand should place / look for a resource.
Functions§
- add_
resource - Copy a file into the chosen tier directory, optionally renaming it.
- add_
to_ dir - Lower-level helper: copy
srcintodir, optionally renaming it. - delete_
from_ dir - Lower-level helper: delete a single resource from an explicit directory.
- delete_
resource - Delete a resource by name from the chosen tier.
- list_
resources - List resources discovered under the requested scope.
- print_
search_ paths - Print the directories the collector would search for the current invocation, in tier order.
- show_
resource - Print the absolute path and contents of a resource discovered in any tier.