ziggurat_utils 1.2.0 ziggurat_utils: ^1.2.0 copied to clipboard
Various utilities for use with the [ziggurat]([URL](https://pub.dev/packages/ziggurat)) package.
ziggurat_utils #
This package provides various utilities for use with the ziggurat package.
Usage #
First, activate the package so you can use the scripts:
dart pub global activate ziggurat_utils
Next, see below for the scripts provided by this package.
Contents #
See script -h
for more help on each script.
data2json #
The data2json
utility allows you to convert any file to pure dart code. This is useful if you want to hard code music into the code of your program so it doesn't not to be loaded from disk.
Usage
Convert data files into code via json.
It is first necessary to create a file:
`data2json create music.json -c "Music to be loaded from code."`
Then you can add files to the collection with the `add command`.
Usage: data2json <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
add Add a file to a data file.
comment Change the comment for an entry.
compile Convert a JSON file to Dart code.
create Create a new data file.
ls List files in a data file.
remove Remove a file.
Run "data2json help <command>" for more information about a command.
vault #
This utility allows you to encrypt multiple audio files into a single file and generate Dart code which lets you easily access those files from within your own code, without having to worry about file names or the encryption key.
Usage
Create and edit vault files.
You must first create a vault file with the `create` command:
`vault create vault.json -c "Sounds for the game."`
Usage: vault <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
comment Change or clear the comment for a file or folder.
compile Create an encrypted vault file and corresponding Dart code.
create Create a new vault file.
file Add a file.
folder Add a folder.
ls List files.
remove Remove a file or folder.
Run "vault help <command>" for more information about a command.
assets #
This utility allows you to maintain a folder of many encrypted assets.
The path and encryption key of each file shall be maintained for you in a JSON file, which can be converted to dart with the assets build
command.
Usage
Create and edit asset stores.
You must first create an asset store with the `create` command:
`assets create assets.json bin/assets.dart -c "Assets for the game."`
Usage: assets <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
comment Change asset comment
create Create a new assets store.
directory Add a directory.
file Add a file.
ls List contents.
regenerate Regenerate Dart code.
rm Remove an entry.
Run "assets help <command>" for more information about a command.