Files
xod/packages/xod-cli
Kirill Shumilov fb248cf16e feat(xod-fs, xod-client-electron, xod-cli): load libs from a local workspace and extra lib directories (+4 squashed commits)
Squashed commits:
[12a9428] refactor(xod-cli): bundle std libs with xodc and use them in `xodc transpile` command
[66d1b9d] refactor(xod-fs, workspace): rename `lib` folder into `__lib__` and make it not necessary and don't copy stdlib into user workspace
[f19c366] feat(xod-fs): load project with libs from local workspace and bundled workspace
[ea9ac0e] feat(xod-func-tools): add `uniqLists` function
2017-10-23 18:54:24 +03:00
..
2017-06-26 15:20:57 +03:00

xod-cli

This package is a part of the XOD project.

The package contains implemetation of xodc command line utility.

Basically its a collection of thin wrappers around NodeJS APIs available via other packages. The responsibility of xod-cli is to parse command line arguments, call API, and format the result on stdout/stderr properly.

xodc uses subcommands like git does to perform various functions. The subcommands handling could be found in src/xodc-*.js.

Usage

  xodc pack <projectDir> <output>
  xodc unpack <xodball> <workspace>
  xodc transpile [--output=<filename>] [--target=<target>] <input> <path>
  xodc publish --swagger=<swagger> --author=<author> [--orgname=<orgname>] [<projectDir>]
  xodc install --swagger=<swagger> <libUri> [<path>]
  xodc ab set-executable <path>
  xodc ab set-packages <path>
  xodc ab list-index
  xodc ab list-pavs
  xodc ab list-ports
  xodc ab list-boards <package> <architecture> <version>
  xodc ab install-pav <package> <architecture> <version>
  xodc ab compile <package> <architecture> <board> <file>
  xodc ab upload <package> <architecture> <board> <port> <file>