-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
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.
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; |
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.
What do you think about changing the formatterOptions
type to add an optional packages
option instead?
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.
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
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.
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) {
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
sectionWhat issues does this PR fix or reference?
@W-9584557@