diff --git a/src/cmds.ts b/src/cmds.ts index b5963a9..c8af459 100644 --- a/src/cmds.ts +++ b/src/cmds.ts @@ -17,6 +17,7 @@ import { status, test, } from './commands' +import { getFFVersion } from './commands/ff-version' import { applyPatches } from './commands/patches' import { Cmd } from './types' @@ -97,6 +98,11 @@ export const commands: Cmd[] = [ description: 'Initialise the Firefox directory.', controller: init, }, + { + cmd: 'ff-version', + description: 'Retrieves the version of firefox to build against', + controller: getFFVersion, + }, { cmd: 'license-check', aliases: ['lc'], diff --git a/src/commands/ff-version.ts b/src/commands/ff-version.ts new file mode 100644 index 0000000..1ad0270 --- /dev/null +++ b/src/commands/ff-version.ts @@ -0,0 +1,5 @@ +import { config } from '..' + +export const getFFVersion = (): void => { + console.log(config.version.version) +}