mkrawimg

Module cli

source
Expand description

Module defining the command line usage.

§Available subcommands

§List Available Devices

$ ./target/release/mkrawimg list --format FORMAT

While FORMAT can be one of the following:

  • pretty: table format which contains basic information.
  • simple: simple column-based format splitted by tab character ('\t').

§Build images for one specific device

Building images requires the root privileges.
# ./target/release/mkrawimg build --variants VARIANTS -- DEVICE
  • VARIANTS: distribution variants, can be one or more of the base, desktop, server. If not specified, all variants will be built.
  • DEVICE: A string identifying the target device, can be one of the following:
    • Device ID (defined in device.toml).
    • Device alias (defined in device.toml).
    • The path to the device.toml file.

§Build Images for All Devices (in the registry)

Building images requires the root privileges.
# ./target/release/mkrawimg build-all --variants VARIANTS

§Check validity of the device specification files

$ ./target/release/mkrawimg check

For the advanced usage, please go to Cmdline.

Structs§

Enums§