mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
20 lines
383 B
JavaScript
Executable File
20 lines
383 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var cli = require('commander')
|
|
var ipfs = require('ipfs-api')('localhost','5001')
|
|
var BoardsAPI = require('../lib/boards-api.js')
|
|
|
|
var boards = new BoardsAPI(ipfs)
|
|
|
|
boards.init(function(err){
|
|
if(err){
|
|
console.log(err)
|
|
}
|
|
})
|
|
|
|
cli
|
|
.version(require('package.json').version)
|
|
.description('command line interface for IPFS boards')
|
|
|
|
cli.parse(process.argv)
|