@andylu1988/matic-cli
Version:
A CLI to setup and manage Matic validator nodes
32 lines (23 loc) • 739 B
JavaScript
import { Command } from 'commander'
import heimdall from './heimdall'
import genesis from './genesis'
import bor from './bor'
import localnet from './localnet'
//import ganache from './ganache'
import devnet from './devnet'
//
// Add sub commands
//
const heimdallCmd = new Command('heimdall')
heimdallCmd.action(heimdall)
const genesisCmd = new Command('genesis')
genesisCmd.action(genesis)
const borCmd = new Command('bor')
borCmd.action(bor)
// const ganacheCmd = new Command('ganache')
// ganacheCmd.action(ganache)
const localnetCmd = new Command('localnet')
localnetCmd.action(localnet)
const devnetCmd = new Command('devnet')
devnetCmd.action(devnet)
export default [heimdallCmd, genesisCmd, borCmd, localnetCmd, devnetCmd]