npm

@fastlanejs/api

1.1.4 • Public • Published

fastlane-codegen

API generator/extractor for Fastlane

Generates the shape of fastlane actions and their options based on the currently installed version.

This is useful for generating a wrapper API over the socket_server interface.

CLI

The easiest way to get started is running with npx

npx fastlane-api -f myapi.json
# or
npx fastlane-api > myapi.json

Options

❯ npx fastlane-api --help
Usage: fastlane-api [options]

Generate JSON or YAML formatted API from Fastlane

Options:
  -f --file [filePath]  target file for serialized output (defaults to stdout)
  -d --debug            Debug mode - leave the fastlane directory and
                        auto-generated files behind (default: false)
  -y --yaml             Generate YAML instead of JSON (default: false)
  -h, --help            display help for command

API

The export of fastlane-api is a function that generates the API as an object you can use in runtime.

Installation

yarn add fastlane-api

Usage

const getFastlaneAPI = require("fastlane-api");
const { version, actions } = getFastlaneAPI(); //This is synchronous and slow
console.log("version is", api.version);
console.log(
  "Available actions are",
  actions.map(({ name }) => name)
);

Readme

Keywords

Package Sidebar

Install

npm i @fastlanejs/api

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • raydeck