Skip to content

Hackmud Script Manager 0.0.1

Compare
Choose a tag to compare
@samualtnorman samualtnorman released this 25 Nov 12:40
· 723 commits to main since this release

First release! Since this is the first version, here's basically all the features this package has so far.

--version and -v options print the version number.
--help and -h options prints very primitive information based on which command you ran.

All the commands (except config) are just wrappers for the hackmud_env-tools package.

hsm build <src - default "src"> <dist - default "dist">
Builds your script files from the chosen src folder to the target build directory.
Prints which files were built, and how many characters were saved.

hsm clear <dist - default: "dist"> <user - default: defaultUser from config>
Cleans up files in the target directory and the chosen user from the hackmud directory.
Prints number of cleared files.

hsm push <dist - default: "dist"> <user - default: defaultUser from config>
Copies scripts from the target build folder to the chosen user in the hackmud directory.
Prints how many files were pushed.

hsm sync <src - default ".">
Takes optional --users=[comma seperated users] which if specified only pushes to those users.
Takes optional --scripts=[comma seperated scripts] which if specified only pushes those scripts.
This is probably the most useful command, being a combination of build and push.
Pushes scripts directly from the src folder to the hackmud directory.
Prints every file that was synced, which users the script was pushed to, and number of characters that were saved.

hsm watch <src - default: "src"> <user - default: defaultUser from config>
Watches the chosen src folder for changes and pushes scripts if they change to chosen user in hackmud directory.
Prints script name, user it was pushed to, and how many characters were saved right after pushing a script.

hsm config get <...path>
Prints the value in the config from the specified path.

hsm config delete <...path>
Deletes the value in the config from the specified path.

hsm config set <...path> <value>
Sets the specified value in the config from the specified path.