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

Commit

Permalink
Added nem2-cli -> symbol-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia360 committed Feb 24, 2020
1 parent a58bfa3 commit 946896d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as Path from 'path'
import {CLI, Shim} from 'clime'

// The second parameter is the path to folder that contains command modules.
const cli = new CLI('nem2-cli', Path.join(__dirname, 'commands'))
const cli = new CLI('symbol-cli', Path.join(__dirname, 'commands'))

// Clime in its core provides an object-based command-line infrastructure.
// To have it work as a common CLI, a shim needs to be applied:
Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/create.profile.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export abstract class CreateProfileCommand extends Command {
this.profileService.setDefaultProfile(profileName)
} catch (err) {
throw new ExpectedError('Can\'t set the profile [' + profileName + '] as the default profile.' +
'Use \'nem2-cli profile list\' to check whether the profile exist, ' +
'if not, use \'nem2-cli profile create\' to create a profile')
'Use \'symbol-cli profile list\' to check whether the profile exist, ' +
'if not, use \'symbol-cli profile create\' to create a profile')
}
}
}
Expand All @@ -122,7 +122,7 @@ export class CreateProfileOptions extends ProfileOptions {

@option({
flag: 'u',
description: '(Optional) When saving profile, provide a NEM2 Node URL. Example: http://localhost:3000',
description: '(Optional) When saving profile, provide a Symbol Node URL. Example: http://localhost:3000',
})
url: string

Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/profile.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export abstract class ProfileCommand extends Command {
return this.profileService.getDefaultProfile()
} catch (err) {
throw new ExpectedError('Can\'t retrieve the current profile.' +
'Use \'nem2-cli profile list\' to check whether the profile exist, ' +
'if not, use \'nem2-cli profile create\' to create a new profile')
'Use \'symbol-cli profile list\' to check whether the profile exist, ' +
'if not, use \'symbol-cli profile create\' to create a new profile')
}
}

Expand All @@ -67,7 +67,7 @@ export abstract class ProfileCommand extends Command {
return this.profileService.getDefaultProfile()
} catch (err) {
throw new ExpectedError('Can\'t retrieve the default profile.' +
'Use \'nem2-cli profile create\' to create a new default profile')
'Use \'symbol-cli profile create\' to create a new default profile')
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/generationHash.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GenerationHashResolver implements Resolver {
generationHash = options.generationHash
? options.generationHash : (await blockHttp.getBlockByHeight(UInt64.fromUint(1)).toPromise()).generationHash
} catch (ignored) {
throw new ExpectedError('Check if you can reach the NEM2 url provided: ' + options.url + '/block/1')
throw new ExpectedError('Check if you can reach the Symbol url provided: ' + options.url + '/block/1')
}
return generationHash
}
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/key.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class KeyResolver implements Resolver {
() => undefined,
altText ?
altText : 'Enter a UInt64 key in hexadecimal format.' +
' You can use the command \'nem2-cli converter stringtokey\' ' +
' You can use the command \'symbol-cli converter stringtokey\' ' +
'to turn an string into a valid key: ').trim()
new KeyValidator().validate(resolution)
return UInt64.fromHex(resolution)
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/url.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class URLResolver implements Resolver {
const resolution = OptionsResolver(options,
'url',
() => secondSource ? secondSource.url : undefined,
altText ? altText : 'Enter the NEM2 node URL. (Example: http://localhost:3000): ').trim()
altText ? altText : 'Enter the Symbol node URL. (Example: http://localhost:3000): ').trim()

return resolution.endsWith('/') ? resolution.slice(0, -1) : resolution
}
Expand Down

0 comments on commit 946896d

Please sign in to comment.