Command to retreive the firefox version

This commit is contained in:
trickypr 2021-12-26 11:21:34 +11:00
parent c3667b279d
commit c1b3ae80f9
2 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,7 @@ import {
status, status,
test, test,
} from './commands' } from './commands'
import { getFFVersion } from './commands/ff-version'
import { applyPatches } from './commands/patches' import { applyPatches } from './commands/patches'
import { Cmd } from './types' import { Cmd } from './types'
@ -97,6 +98,11 @@ export const commands: Cmd[] = [
description: 'Initialise the Firefox directory.', description: 'Initialise the Firefox directory.',
controller: init, controller: init,
}, },
{
cmd: 'ff-version',
description: 'Retrieves the version of firefox to build against',
controller: getFFVersion,
},
{ {
cmd: 'license-check', cmd: 'license-check',
aliases: ['lc'], aliases: ['lc'],

View file

@ -0,0 +1,5 @@
import { config } from '..'
export const getFFVersion = (): void => {
console.log(config.version.version)
}