-
Notifications
You must be signed in to change notification settings - Fork 71
refactor(cli): make the cli use more shared code #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from './action-aware'; | ||
| export * from './io-helper'; | ||
| export * from './level-priority'; | ||
| export * from './message-maker'; | ||
| export * from './types'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| export * from './messages'; | ||
| export * from './io-host-wrappers'; | ||
| export * from './level-priority'; | ||
| export * from './timer'; | ||
| export * from './sdk-logger'; |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ import { | |
| } from 'cdk-assets'; | ||
| import type { SDK } from '..'; | ||
| import { formatMessage } from '../../cli/messages'; | ||
| import { IIoHost, IoMessageLevel, IoMessaging, ToolkitAction } from '../../toolkit/cli-io-host'; | ||
| import { IIoHost, IoMessageLevel, IoMessaging } from '../../toolkit/cli-io-host'; | ||
| import { ToolkitError } from '../../toolkit/error'; | ||
| import type { SdkProvider } from '../aws-auth'; | ||
| import { Mode } from '../plugin'; | ||
|
|
@@ -184,7 +184,7 @@ export const EVENT_TO_LEVEL: Record<EventType, IoMessageLevel | false> = { | |
|
|
||
| export abstract class BasePublishProgressListener implements IPublishProgressListener { | ||
| protected readonly ioHost: IIoHost; | ||
| protected readonly action: ToolkitAction; | ||
| protected readonly action: IoMessaging['action']; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plan is to not have the |
||
|
|
||
| constructor({ ioHost, action }: IoMessaging) { | ||
| this.ioHost = ioHost; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea how this file got there in the first place. But it won't anymore in future.