Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7645 from LiskHQ/7635-rename-node-topic-into-system
Browse files Browse the repository at this point in the history
Align Commander `node` topic name to `system` namespace - Closes #7635
  • Loading branch information
shuse2 authored Oct 17, 2022
2 parents 28a42e9 + a760dae commit 2615ac4
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
* Removal or modification of this copyright notice is prohibited.
*
*/
export { InfoCommand as NodeInfoCommand } from './info';
export { InfoCommand as NodeInfoCommand } from './node-info';
export { MetadataCommand as NodeMetadataCommand } from './metadata';
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { BaseIPCClientCommand } from '../base_ipc_client';
export abstract class MetadataCommand extends BaseIPCClientCommand {
static description = 'Get node metadata from a running application.';

static examples = ['node:metadata', 'node:metadata --data-path ./lisk'];
static examples = ['system:metadata', 'system:metadata --data-path ./lisk'];

static flags = {
...BaseIPCClientCommand.flags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { BaseIPCClientCommand } from '../base_ipc_client';
export abstract class InfoCommand extends BaseIPCClientCommand {
static description = 'Get node information from a running application.';

static examples = ['node:info', 'node:info --data-path ./lisk'];
static examples = ['system:node-info', 'system:node-info --data-path ./lisk'];

static flags = {
...BaseIPCClientCommand.flags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"hash-onion": {
"description": "Create hash onions to be used by the forger."
},
"node": {
"system": {
"description": "Commands relating to <%= appName %> node."
},
"passphrase": {
Expand Down
2 changes: 1 addition & 1 deletion commander/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export {
GeneratorImportCommand,
GeneratorExportCommand,
} from './bootstrapping/commands/generator';
export { NodeInfoCommand, NodeMetadataCommand } from './bootstrapping/commands/node';
export { NodeInfoCommand, NodeMetadataCommand } from './bootstrapping/commands/system';
export {
PassphraseDecryptCommand,
PassphraseEncryptCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import * as apiClient from '@liskhq/lisk-api-client';
import { getConfig } from '../../../helpers/config';
import { BaseIPCClientCommand } from '../../../../src/bootstrapping/commands/base_ipc_client';
import * as appUtils from '../../../../src/utils/application';
import { InfoCommand } from '../../../../src/bootstrapping/commands/node/info';
import { InfoCommand } from '../../../../src/bootstrapping/commands/system/node-info';
import { Awaited } from '../../../types';

describe('node:info command', () => {
describe('system:node-info command', () => {
const queryResult = {
version: '3.0.0-beta.1',
networkVersion: '1.1',
Expand Down Expand Up @@ -70,7 +70,7 @@ describe('node:info command', () => {
} as never);
});

describe('node:info', () => {
describe('system:node-info', () => {
it('should get node info and display as an object', async () => {
await InfoCommand.run([], config);
expect(getMock).toHaveBeenCalledTimes(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import * as apiClient from '@liskhq/lisk-api-client';
import { getConfig } from '../../../helpers/config';
import { BaseIPCClientCommand } from '../../../../src/bootstrapping/commands/base_ipc_client';
import * as appUtils from '../../../../src/utils/application';
import { MetadataCommand } from '../../../../src/bootstrapping/commands/node/metadata';
import { MetadataCommand } from '../../../../src/bootstrapping/commands/system/metadata';
import { Awaited } from '../../../types';

describe('node:metadata command', () => {
describe('system:metadata command', () => {
const queryResult = {
modules: [
{
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('node:metadata command', () => {
} as never);
});

describe('node:metadata', () => {
describe('system:metadata', () => {
it('should get node metadata and display as an object', async () => {
await MetadataCommand.run([], config);
expect(getMock).toHaveBeenCalledTimes(1);
Expand Down
2 changes: 1 addition & 1 deletion examples/dpos-mainchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"hash-onion": {
"description": "Create hash onions to be used by the forger."
},
"node": {
"system": {
"description": "Commands relating to dpos-mainchain node."
},
"passphrase": {
Expand Down

0 comments on commit 2615ac4

Please sign in to comment.