PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
/
commands
'use strict'; const Command = require('../command'); class VersionCommand extends Command { run() { const os = require('os'); const chalk = require('chalk'); const cliVersion = this.system.cliVersion; this.ui.log(`Ghost-CLI version: ${chalk.cyan(cliVersion)}`); const instance = this.system.getInstance(); // This will be false if we're not in a Ghost instance folder if (instance.version) { const dir = chalk.gray(`(at ${instance.dir.replace(os.homedir(), '~')})`); this.ui.log(`Ghost version: ${chalk.cyan(instance.version)} ${dir}`); } } } VersionCommand.description = 'Prints out Ghost-CLI version (and Ghost version if one exists)'; VersionCommand.global = true; VersionCommand.allowRoot = true; module.exports = VersionCommand;
[-] stop.js
[edit]
[-] migrate.js
[edit]
[-] restart.js
[edit]
[+]
..
[-] run.js
[edit]
[-] import.js
[edit]
[-] install.js
[edit]
[-] export.js
[edit]
[-] uninstall.js
[edit]
[+]
doctor
[-] check-update.js
[edit]
[-] start.js
[edit]
[-] config.js
[edit]
[-] update.js
[edit]
[-] ls.js
[edit]
[-] setup.js
[edit]
[-] buster.js
[edit]
[-] log.js
[edit]
[-] version.js
[edit]