Crates.io | archbelt |
lib.rs | archbelt |
version | 0.3.0 |
source | src |
created_at | 2024-07-14 13:56:01.464444 |
updated_at | 2024-08-04 04:30:59.412311 |
description | A tool to work with Archean blueprints and XenonCode modules |
homepage | |
repository | https://github.com/archean-cookbook/archbelt |
max_upload_size | |
id | 1303013 |
size | 65,078 |
A tool to work with Archean blueprints and XenonCode modules; primarily for use with version control systems and CI/CD.
The following features are in-development:
.xc
fileA tool to work with Archean blueprints and XenonCode modules
Usage: archbelt [COMMAND]
Commands:
yank Yank code files from a blueprint
watch watch for changes to blueprint file(s); will yank on change as if -f is set
package Gather metadata and files from blueprint for packaging
info Display information about the blueprint
complete Generate shell completion for zsh & bash
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Note, [BLUEPRINT]...
is the name of the blueprint without the .json
extension, and no quotes. This will use the exact name of the blueprint saved in-game, letting you Ctrl-C to copy the name just before you save it, then paste it into the command line.
Yank code files from a blueprint
Usage: archbelt yank [OPTIONS] [BLUEPRINT]...
Arguments:
[BLUEPRINT]... name of the blueprint without .json
Options:
--blueprint-path <PATH> path to blueprints folder
-x, --no-collate do not collate the files by component
-f, --folder yank blueprint files to folder named after blueprint
-w, --watch watch for changes to the blueprint; yanks files on change; assumes -f
-h, --help Print help
Note, [TARGET]...
is the name of the blueprint without the .json
extension, and no quotes. This will use the exact name of the blueprint saved in-game, letting you Ctrl-C to copy the name just before you save it, then paste it into the command line.
watch for changes to blueprint file(s); will yank on change as if -f is set
Usage: archbelt watch [OPTIONS] [TARGET]...
Arguments:
[TARGET]... target blueprint name (if none given, watches all)
Options:
--blueprint-path <PATH> path to blueprints folder
-x, --no-collate do not collate the files by component (use at own risk; this can get very messy..)
-h, --help Print help
Primarily for putting things together in a folder structure conducive to packaging for distribution or version control. This will create a folder named after the blueprint, and put all the xc files in it. It will also create a archbelt.json
file with the blueprint's metadata and place a copy of the blueprint json alongside it.
This will place everything in the folder you run the command from; example - archbelt package example
will create a folder named example
, a file named archbelt.json
, and a copy of the blueprint .json file in the current directory. Then, it will place all the xc files from the blueprint in the folder example
.
This is still a work in progress and the format of archbelt.json
is subject to change.
Gather metadata and files from blueprint for packaging
Usage: archbelt package [OPTIONS] [BLUEPRINT]...
Arguments:
[BLUEPRINT]... name of the blueprint without .json
Options:
--blueprint-path <PATH> path to blueprints folder
-h, --help Print help
Dumps general information about environment. Not a lot here.. yet.
Display information about the blueprint
Usage: archbelt info [OPTIONS]
Options:
--blueprint-path <PATH> path to blueprints folder
-h, --help Print help
archbelt complete --help
Generate shell completion for zsh & bash
Usage: archbelt complete [OPTIONS]
Options:
--shell <target> [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help
yank
or watch
, archbelt
will create a folder for each component that has an HDD in the blueprint. If there is an alias, it will use that for the folder name; if there isn't, it will use the module type's name instead. This means that if there are say, several computers, they will all be saved in the ARCHEAN_computer
folder. This could lead to files being overwritten.