Workiva / dpx

Apache License 2.0
1 stars 0 forks source link

FEDX-812 Improve CLI ergonomics #6

Closed evanweible-wf closed 4 months ago

evanweible-wf commented 4 months ago

Motivation

Currently, in order to "override" the command that gets run when using dpx, you have to specify the package source by adding -p and then changing via the first arg, whereas otherwise the -p arg is not required and is inferred from the first arg.

So for example:

# This runs the default executable from `my_tool`
dpx pub@pub.workiva.org:my_tool

# To override that and run a different executable, you need
# to explicitly specify the package source with `-p`:
dpx -p pub@pub.workiva.org:my_tool other_exe

This is awkward because it's not obvious when the -p format should be used.

Changes

A few changes are made in this PR to improve the overall ergonomics of the CLI:

rmconsole-wf commented 4 months ago

Merge Requirements Met :white_check_mark:

Request Rosie to automerge this pull request by including @Workiva/release-management-p in a comment.

:white_check_mark: Required actions successful (Workflow job Dart build has conclusion: success) (Workflow job Dart checks - 2.19.6 on ubuntu has conclusion: success) (Workflow job Dart checks - stable on ubuntu has conclusion: success) (Workflow job Dart checks - 2.19.6 on windows has conclusion: success) (Workflow job Dart checks - stable on windows has conclusion: success)

General Information

Ticket(s):

Code Review(s): https://github.com/Workiva/dpx/pull/6

Reviewers: evanweible-wf, matthewnitschke-wk

Additional Information

Watchlist Notifications: None

    When this pull is merged I will add it to the following release:
    Current version: dpx 0.1.0
    Version after merge: dpx 0.1.0
    Release Ticket(s): None

Note: This is a shortened report. Click here to view Rosie's full evaluation. Last updated on Thursday, June 13 01:04 PM CST

aviary-wf commented 4 months ago

Security Insights

No security relevant content was detected by automated scans.

Action Items

evanweible-wf commented 4 months ago

QA +1

evanweible-wf commented 4 months ago

@Workiva/release-management-p

rmconsole-wf commented 4 months ago

@evanweible-wf I will not merge this because:

chrisgustavsen-wf commented 4 months ago

RM +1

rmconsole-wf commented 4 months ago

Could not merge pull request. For assistance, reach out to a member of Release Management in the '#support-release' Slack channel

Error: 5 of 7 required status checks are expected.

rmconsole-wf commented 4 months ago

Could not merge pull request. For assistance, reach out to a member of Release Management in the '#support-release' Slack channel

Error: 5 of 7 required status checks are expected.