Skip to content

Commit

Permalink
Merge pull request #100 from pulsar-edit/ppm-version-rebrand-atom-to-…
Browse files Browse the repository at this point in the history
…pulsar

src: Rebrand two lines of "ppm --version" output
  • Loading branch information
DeeDeeG authored Oct 1, 2023
2 parents 7b4a709 + 0d7bf2a commit 9b7205b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions spec/apm-cli.js → spec/apm-cli-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[0]).toBe(`apm ${require('../package.json').version}`);
expect(lines[0]).toBe(`ppm ${require('../package.json').version}`);
expect(lines[1]).toBe(`npm ${require('npm/package.json').version}`);
expect(lines[2]).toBe(`node ${process.versions.node} ${process.arch}`);
expect(lines[3]).toBe(`atom ${testAtomVersion}`);
expect(lines[3]).toBe(`pulsar ${testAtomVersion}`);
});
});
});
Expand All @@ -60,7 +60,7 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[0]).toBe(`apm ${require('../package.json').version}`);
expect(lines[0]).toBe(`ppm ${require('../package.json').version}`);
expect(lines[1]).toBe(`npm ${require('npm/package.json').version}`);
expect(lines[2]).toBe(`node ${process.versions.node} ${process.arch}`);
});
Expand All @@ -78,7 +78,7 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[3]).toBe(`atom ${testAtomVersion}`);
expect(lines[3]).toBe(`pulsar ${testAtomVersion}`);
});
});
});
Expand Down
6 changes: 4 additions & 2 deletions src/apm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ const printVersions = function(args, callback) {
if (args.json) {
versions = {
apm: apmVersion,
ppm: apmVersion,
npm: npmVersion,
node: nodeVersion,
atom: atomVersion,
pulsar: atomVersion,
python: pythonVersion,
git: gitVersion,
nodeArch: process.arch
Expand All @@ -133,10 +135,10 @@ const printVersions = function(args, callback) {
if (gitVersion == null) { gitVersion = ''; }
if (atomVersion == null) { atomVersion = ''; }
versions = `\
${'apm'.red} ${apmVersion.red}
${'ppm'.red} ${apmVersion.red}
${'npm'.green} ${npmVersion.green}
${'node'.blue} ${nodeVersion.blue} ${process.arch.blue}
${'atom'.cyan} ${atomVersion.cyan}
${'pulsar'.cyan} ${atomVersion.cyan}
${'python'.yellow} ${pythonVersion.yellow}
${'git'.magenta} ${gitVersion.magenta}\
`;
Expand Down

0 comments on commit 9b7205b

Please sign in to comment.