cli

command
v0.0.0-...-81f22b2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

README

SParts Command Line Interface

Overview

The SParts Command Line interface (cli) is the command line tool to interface with the ledger. For example you can list out the suppliers, create new software parts and associate artifacts with existing parts. It was designed to have a similar look, feel and behavior as the git command line interface. Enter the following to get a list of available commands

sparts --help

Examples of some of the more common commands include:

  sparts <command> --help			// obtain detailed help description for
 								  // <command>'s 
  										
  sparts config --list				// list the sparts local working direct
  
  sparts ping					   // checks if ledger is up
  
  sparts supplier --list		    // list the current suppliers

  sparts add <file1> <file2>		// Add artifacts to the staging areas
  
  sparts status 				   // Display ledger artifacts staging status
  
  sparts part --create 				// create a new part for the default supplier

To Build

You will need to install the following third party components:

go get github.com/mattn/go-sqlite3 // might need to install gcc on Windows
go get github.com/nu7hatch/gouuid 
go github.com/ghodss/yaml
go github.com/btcsuite/btcd/btcec             
go github.com/btcsuite/btcd/chaincfg
go github.com/btcsuite/btcd/chaincfg/chainhash
go github.com/btcsuite/btcutil

Edit build.sh

# Set to directory within your $PATH (otherwise build in local directory)
BIN_DIR="."

Run build.sh

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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