Skip to content

feat: refactor CLI logging#1306

Merged
dOrgJelli merged 9 commits intoorigin-devfrom
refactor-cli-logging
Oct 8, 2022
Merged

feat: refactor CLI logging#1306
dOrgJelli merged 9 commits intoorigin-devfrom
refactor-cli-logging

Conversation

@dOrgJelli
Copy link
Contributor

@dOrgJelli dOrgJelli commented Oct 7, 2022

closes: #99

@dOrgJelli dOrgJelli marked this pull request as ready for review October 7, 2022 23:37
@dOrgJelli dOrgJelli requested a review from namesty as a code owner October 7, 2022 23:37
@dOrgJelli dOrgJelli merged commit 29cc5ad into origin-dev Oct 8, 2022
Copy link
Contributor

@pileks pileks left a comment

Choose a reason for hiding this comment

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

Minor comments, everything looks great all-in-all! I'll open a PR with the proposed fixes.

intlMsg.lib_helpers_docker_copyText(args),
intlMsg.lib_helpers_docker_copyError(args),
intlMsg.lib_helpers_docker_copyWarning(args),
async (_spinner) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to rename this to _logger just for the sake of clarity? 😄 There's a few of these within the PR, ctrl+F spinner
Or just remove it as you've done in other places.

intlMsg.lib_helpers_buildText(),
intlMsg.lib_helpers_buildError(),
intlMsg.lib_helpers_buildWarning(),
async (_spinner) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we want to rename this to logger and pass it along into line 36 as the argument for the logger in runCommand? We ARE passing along the same thing, just a stylistic preference.


export class DockerCompose {
private _dockerLock = getDockerFileLock();
private _dockerLock = getDockerFileLock(new Logger({}));
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason for passing an empty Logger here instead of an actual one?

@dOrgJelli dOrgJelli deleted the refactor-cli-logging branch April 10, 2023 17:02
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.

2 participants