Skip to content
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

fix: retrieve package names output #149

Merged
merged 12 commits into from
Jul 22, 2021
Merged

fix: retrieve package names output #149

merged 12 commits into from
Jul 22, 2021

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

fixes retrieves with package name's output to list the package name, path, and source retrieved into that dir
matches toolbelt with the package section and JSON
differs from toolbelt by including the Retrieved Source section

What issues does this PR fix or reference?

@W-9584557@

@WillieRuemmele WillieRuemmele requested a review from shetzel July 19, 2021 22:35
Copy link
Contributor

@shetzel shetzel left a comment

Choose a reason for hiding this comment

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

there are a ton of changes in the yarn.lock file. Maybe we can leave it alone for this PR and handle those updates when we do all the dependabot merges?

const formatterOptions = {
waitTime: this.getFlag<Duration>('wait').quantity,
verbose: this.getFlag<boolean>('verbose', false),
};
const formatter = new RetrieveResultFormatter(this.logger, this.ux, formatterOptions, this.retrieveResult);
formatter.packages = packages;
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about changing the formatterOptions type to add an optional packages option instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was doing that at first, but that type is defined in the ResultFormatter class, which is a base class for deploy and retrieve, but retrieve only has packagenames. It felt awkward altering the base class for only one of the child classes... but I'm open to doing that way too

Copy link
Contributor

Choose a reason for hiding this comment

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

Why can't we do this:

export interface RetrieveResultFormatterOptions extends ResultFormatterOptions {
  packages?: string;
}

and then:
public constructor(logger: Logger, ux: UX, options: RetrieveResultFormatterOptions, result: RetrieveResult) {

@shetzel shetzel merged commit 7350488 into main Jul 22, 2021
@shetzel shetzel deleted the wr/PackageNameOutput branch July 22, 2021 21:16
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