import { Command } from "@oclif/command" ; import { bearExec } from "../utils/bear-exec" ; import cmdFlags from "../utils/flags" ; import { argsWithPipe } from "../utils/read-pipe" ; export default class ChangeFont extends Command { static description = "Change the selected Bear Font." ; static flags = { help : cmdFlags . help , "show-window" : cmdFlags [ "show-window" ] } ; static args = [ { name : "font" , description : "font name" , available : [ "Avenir Next" , "System" , "Helvetica Neue" , "Menlo" , "Georgia" , "Courier" , "Open Dyslexic" ] } ] ; async run ( ) { const { args : cmdArgs , flags } = this . parse ( ChangeFont ) ; const args = await argsWithPipe ( ChangeFont . args , cmdArgs , true ) ; const params = { ... flags , ... args } ; await bearExec ( "change-font" , params ) ; } }