Skip to content

feat(hub): add environment management commands#149

Merged
rs-amp merged 17 commits into
amplience:masterfrom
dlilly:novadev-547
Oct 19, 2022
Merged

feat(hub): add environment management commands#149
rs-amp merged 17 commits into
amplience:masterfrom
dlilly:novadev-547

Conversation

@dlilly
Copy link
Copy Markdown
Contributor

@dlilly dlilly commented Sep 12, 2022

this commit adds the commands 'hub ls', 'hub add', and 'hub use' which manipulate dc-cli-config.json

Comment thread src/common/hub-manager.ts Outdated
Copy link
Copy Markdown
Contributor

@rs-amp rs-amp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a few minor comments.

Comment thread .eslintrc.yaml Outdated
Comment thread docs/HUB.md
Comment thread docs/HUB.md Outdated
Comment thread package.json Outdated
Comment thread src/commands/hub.ts Outdated
Comment thread src/commands/event.ts
@@ -1,5 +1,7 @@
import { Argv } from 'yargs';
import { readConfig } from '../cli';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe readConfig should be moved to ./configure.

Comment thread src/common/hub-manager.ts Outdated
Comment thread src/common/hub-manager.ts Outdated
Comment thread src/common/hub-manager.spec.ts
const mockedWriteFileSync = jest.spyOn(fs, 'writeFileSync');
jest.spyOn(fs, 'existsSync').mockReturnValueOnce(true);
await HubManager.addHub({ ...yargArgs, ...DummyHub });
expect(mockedWriteFileSync).toHaveBeenCalled();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check arguments? Might be harder as this one writes JSON.

@rs-amp rs-amp changed the title fix: novadev-547 feat(hub): add environment management commands Oct 19, 2022
Copy link
Copy Markdown

@rezakalfane rezakalfane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes approved

@rs-amp rs-amp merged commit 2857dac into amplience:master Oct 19, 2022
Pureball pushed a commit to cosnova/dc-cli that referenced this pull request Aug 22, 2023
this commit adds the commands 'hub ls', 'hub add', and 'hub use' which manipulate dc-cli-config.json

* chore: add @types/node

* chore: remove yaml configuration support for node 12, update documentation

* build(nodejs): removed nodejs 12.x support and added nodejs 18.x

* build: require node 14

Co-authored-by: rs-amp <rsimpson@amplience.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants