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 ChangeTheme extends Command { static description = [ "Change the selected Bear theme." , "Some themes may require a Bear Pro subscription." ] . join ( "\n" ) ; static flags = { help : cmdFlags . help , "show-window" : cmdFlags [ "show-window" ] } ; static args = [ { name : "theme" , description : "theme name" , available : [ "Ayu Mirage" , "Ayu" , "Charcoal" , "Cobalt" , "Dark Graphite" , "Dieci" , "Dracula" , "Duotone Heat" , "Duotone Light" , "Duotone Snow" , "Gandalf" , "Gotham" , "Panic Mode" , "Red Graphite" , "Solarized Dark" , "Solarized Light" , "Toothpaste" ] } ] ; async run ( ) { const { args : cmdArgs , flags } = this . parse ( ChangeTheme ) ; const args = await argsWithPipe ( ChangeTheme . args , cmdArgs , true ) ; const params = { ... flags , ... args } ; await bearExec ( "change-theme" , params ) ; } }