Skip to content

trustack/procedure-builder-cli

Repository files navigation

Trustack Procedure Builder CLI - https://trustack.io

This repo contains the a command line wrapper for the Procedure Builder Trustack Procedure that can be used to package your custom Procedures for execution on the Trustack network. The tool will build the package locally for you, but can also be used to publish to IPFS.

npm

Table of Contents

Installation

TBD

Usage

  • Currently requires Nodejs be installed, with which it's used as follows: node index.js [options]

Usage can be seen using the --help option, which is posted here below:

Usage: procbldr.exe [options]

Options:
      --version  Show version number                                   [boolean]
  -c, --code     Procedure code file path, should be index.js
  -k, --key      Encrypt key file (public key)
  -p, --pin      Pin via Pinata pinning service; must supply apikey and
                 secretkey via environment variables or commandline arguments.
                 Will attempt to read from env first, from: PIN_API_KEY and
                 PIN_SECRET_KEY.
  -a, --apikey   Pinata API key - apikey used to pin to Pinata.cloud service
  -s, --secret   Pinata secret key - secretkey used to pin to Pinata.cloud
                 service
  -h, --help     Show help                                             [boolean]

Examples:
  index.js -p ./index.js -k ./cert.pem -i   Package Procedure code in index.js
  false                                     into a correct output file

Procedure Development

See Procedure Examples in the trustack-sdk repo for how to write Procedures.

Build

NOTE: This isn't working in the current release. Will update this once it's working again.

The NPM package pkg is a prerequisite. This can be installed via: npm install --global pkg. To build, run: npm build.

Contributing

We'll work out contributions later, but feel free to file issues as needed.

License

This project is MIT licensed. For the full license, see LICENSE.

Security

TBD

Contact

The primary contact for this project is [@fcbrandon].

Additional information and links

Copyright (C) 2021 Brandon Caldwell - All Rights Reserved

About

CLI tool for packaging Trustack Procedures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published