Skip to content

Instantly share code, notes, and snippets.

View kenanchristian's full-sized avatar
👋

Christian Dimas kenanchristian

👋
View GitHub Profile
@kenanchristian
kenanchristian / interactive-create.ts
Last active September 21, 2020 06:46
[[TypeScript CLI] Making the CLI Interactive] #cli #oclif
import {Command, flags} from '@oclif/command'
import {prompt} from 'inquirer'
export default class Create extends Command {
static description = 'Create a new Pizza'
static examples = [
`$ pizza create
Your pizza is ready!
`,
import {Command, flags} from '@oclif/command'
export default class Create extends Command {
static description = 'Create a new Pizza'
static examples = [
`$ pizza create
Your pizza is ready!
`,
]
@kenanchristian
kenanchristian / hello.ts
Last active September 21, 2020 06:39
[[Typescript CLI] Starting Code] Code generated by OCLIF framework #oclif #cli #writing
import {Command, flags} from '@oclif/command'
export default class Hello extends Command {
static description = 'describe the command here'
static examples = [
`$ pizza hello
hello world from ./src/hello.ts!
`,
]
@kenanchristian
kenanchristian / keybase.md
Created April 13, 2020 01:09
Keybase Proof

Keybase proof

I hereby claim:

  • I am kenanchristian on github.

  • I am kenanchristian (https://keybase.io/kenanchristian) on keybase.

  • I have a public key ASC_HpN80L9Eb82i_Ih4XDrKnxlKCg4wF1v5nm4KJ6_zNQo