looks

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 2 Imported by: 0

README

Looks CLI

Usage

Run looks --help to get a list of all commands or looks <command> --help for help with a specific command

Config

Looks supports configuration via a config.json in the directory it is being called from or from the root directory of a project when using the API.

The configuration schema is as follow (WIP)

{
  "input": {
    "local": {
      "filename": "%s-%s.png",
      "pathname": "pieces"
    }
  },
  "output": {
    "local": {
      "directory": "output"
    },
    "image-count": 1
  },
  "settings": {
    "max-workers": 3,
    "piece-order": [
      "background",
      "color"
    ],
    "rarity": {
      "order": [
        "common"
      ],
      "chances": {
        "common": 1
      }
    }
  },
  "attributes": {
    "background": {
      "pieces": {
        "dark": {
          "rarity": "common"
        },
        "green": {
          "rarity": "common"
        }
      }
    },
    "color": {
      "pieces": {
        "golden": {
          "rarity": "common"
        },
        "blue": {
          "rarity": "common"
        }
      }
    }
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL