import { Command , flags } from "@oclif/command" ; import execa from "execa" ; export default class Publish extends Command { static description = "publishes your saved changes to git" ; static examples = [ `$ htmlgoddess publish
` , ] ; static flags = { help : flags . help ( { char : "h" } ) , force : flags . boolean ( { char : "f" } ) , } ; static args = [ { name : "file" } ] ; async run ( ) { const { args , flags } = this . parse ( Publish ) ; this . log ( "Publishing work" ) ; await execa ( "git" , [ "push" , "origin" ] ) . stdout . pipe ( process . stdout ) ; } }