文件
mynode/packages/app-cli/app/command-version.ts
chen 301194963b
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
feat: Initial clean release of CHM
2026-11-04 11:29:39 +08:00

22 行
613 B
TypeScript

import BaseCommand from './base-command';
import { _ } from '@joplin/lib/locale';
import versionInfo from '@joplin/lib/versionInfo';
class Command extends BaseCommand {
public override usage() {
return 'version';
}
public override description() {
return _('Displays version information');
}
public override async action() {
// The relative path to package.json is from the built version of this command
// in app-cli/build/command-version.js (see https://github.com/laurent22/joplin/issues/15738):
this.stdout(versionInfo(require('./package.json'), {}).message);
}
}
module.exports = Command;