1.0.1 • Published 4 years ago

@modcreative/wayble-cli v1.0.1

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
4 years ago

@mod/wayble-cli

Wayble CLI by Mod Creative, Inc.

oclif Version Downloads/week License

Usage

$ npm install -g @modcreative/wayble-cli
$ wayble COMMAND
running command...
$ wayble (-v|--version|version)
@modcreative/wayble-cli/1.0.1 darwin-x64 node-v12.0.0
$ wayble --help [COMMAND]
USAGE
  $ wayble COMMAND
...

Commands

wayble convert

Convert SVG to PNG

USAGE
  $ wayble convert

OPTIONS
  -f, --file=file      (required) SVG file path to convert to PNG
  -o, --output=output  (required) Path to the PNG output file

EXAMPLE
  $ wayble convert --file="./source/map.svg" --output="./output/map.png"

wayble graph

Generate traversable 2D graph from a raster image

USAGE
  $ wayble graph

OPTIONS
  -f, --file=file      (required) File path to the raster image
  -o, --output=output  (required) Output path for the generated JSON graph
  -s, --spaces=spaces  [default: 255255255] RGB value that represents open spaces

EXAMPLE
  $ wayble graph --file="./source/image.jpg" --spaces="255255255"

wayble help [COMMAND]

display help for wayble

USAGE
  $ wayble help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

wayble plot

Generate animated SVG path from traversable JSON graph

USAGE
  $ wayble plot

OPTIONS
  -f, --file=file  (required) File path to JSON graph
  --end=end        [default: 100,100] End X,Y coordinates
  --start=start    [default: 0,0] Start X,Y coordinates

EXAMPLE
  $ wayble plot --file="./source/graph.json" --start="0,0" --end="100,100"