Skip to content

Commit

Permalink
Merge pull request #4 from permaweb/twilson63/feat-setup-cli
Browse files Browse the repository at this point in the history
feat: added cliffy cli framework and setup sub commands #3
  • Loading branch information
twilson63 committed Aug 3, 2023
2 parents 59f29fc + 90deb2d commit 8f17a20
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dev-cli/src/mod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Command } from 'https://deno.land/x/cliffy@v1.0.0-rc.2/command/mod.ts'

await new Command()
.name('hyperbeam')
.version('0.0.1')
.description('Create Hyperbeam contracts')
// init
.command("init", "create project")
.arguments("<name:string>")
.action(_ => console.log("TODO: init project"))
// repl
.command("repl", "run a lua repl")
.action(_ => console.log("TODO: repl"))
// run
.command("run", "run a lua file")
.arguments("<file:string>")
.action(_ => console.log("TODO: run lua"))
// compile
.command("compile", "build the lua wasm")
.action(_ => console.log("TODO: build"))
// publish
.command("publish", "publish to arweave")
.action(_ => console.log("TODO: publish"))
.parse(Deno.args)

0 comments on commit 8f17a20

Please sign in to comment.