archbelt

Crates.ioarchbelt
lib.rsarchbelt
version
sourcesrc
created_at2024-07-14 13:56:01.464444
updated_at2024-07-14 13:56:01.464444
descriptionA tool to work with Archean blueprints and XenonCode modules
homepage
repositoryhttps://github.com/archean-cookbook/archbelt
max_upload_size
id1303013
size0
Michael K (tsal)

documentation

README

archbelt

A tool to work with Archean blueprints and XenonCode modules; primarily for use with version control systems and CI/CD.

Features

The following features are in-development:

  • Yank code from blueprint as .xc file
  • Copy blueprints to current location for packaging
  • Initialize version control
  • Shell completion

Usage

archbelt
A tool to work with Archean blueprints and XenonCode modules

Usage: archbelt [COMMAND]

Commands:
  yank      Yank code files from a 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

Yank

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:
  -f, --folder  yank blueprint files to folder named after blueprint
  -w, --watch   watch for changes to the blueprint; yanks files on change [not implemented]
  -h, --help    Print help

Planned

Later, this will have a -w flag to specify "watch" mode, where it will watch the blueprint directory for changes and automatically yank the files, placing them in folders named after the blueprint(s). This will be useful for collections that update while you're in the game, and should work well paired with --folder.

Shell Completion

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

Known Issues

  • When creating the files with yank, 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.
Commit count: 0

cargo fmt