file copyright author Vivek M. Chawla <@VivekMChawla>
 *  summary description version license import { flags } from '@salesforce/command' ; import { Messages } from '@salesforce/core' ; import { SfdxError } from '@salesforce/core' ; import { AnyJson } from '@salesforce/ts-types' ; import { SfdxFalconError } from '../../../modules/sfdx-falcon-error' ; import { SfdxFalconYeomanCommand } from '../../../modules/sfdx-falcon-yeoman-command' ; import { SfdxFalconCommandType } from '../../../modules/sfdx-falcon-command' ; Messages . importMessagesDirectory ( __dirname ) ; const commandMessages = Messages . loadMessages ( 'sfdx-falcon' , 'falconApkCreate' ) ; class extends SfdxFalconYeomanCommand summary description public export default class FalconApkCreate extends SfdxFalconYeomanCommand { public static description = commandMessages . getMessage ( 'commandDescription' ) ; public static hidden = false ; public static examples = [ `$ sfdx falcon:apk:create` , `$ sfdx falcon:apk:create --outputdir ~/projects/sfdx-falcon-projects` ] ; protected static flagsConfig = { outputdir : flags . directory ( { char : 'd' , required : false , description : commandMessages . getMessage ( 'outputdir_FlagDescription' ) , default : '.' , hidden : false } ) , ... SfdxFalconYeomanCommand . falconBaseflagsConfig } ; protected static requiresProject = false ; protected static requiresUsername = false ; protected static requiresDevhubUsername = false ; protected static supportsUsername = false ; protected static supportsDevhubUsername = false ; function returns { Promise < AnyJson > } description public async public async run ( ) { this . sfdxFalconCommandInit ( 'falcon:apk:create' , SfdxFalconCommandType . APPX_PACKAGE ) ; await super . runYeomanGenerator ( { generatorType : 'create-appx-package-project' , outputDir : this . outputDirectory , options : [ ] } ) . then ( generatorResult => this . onSuccess ( generatorResult ) ) . catch ( generatorResult => this . onError ( generatorResult ) ) ; return this . falconJsonResponse as unknown as AnyJson ; } method param { SfdxFalconError } cmdError returns { SfdxError } description protected protected buildFinalError ( cmdError ) { return cmdError ; } }