Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Improve usability of cmdlets by eliminating redundant parameters #51

Open
zionyx opened this issue Nov 1, 2019 · 0 comments
Open

Improve usability of cmdlets by eliminating redundant parameters #51

zionyx opened this issue Nov 1, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request idea Idea/suggestion for an improvement or new feature
Milestone

Comments

@zionyx
Copy link
Contributor

zionyx commented Nov 1, 2019

In the world of docker, the image name comprises of the full text that includes these elements:

  1. registry (optional)
  2. image name
  3. tag / digest

As <registry>/<image name>/<tag / digest>.
Eg: docker.io/library/ubuntu:latest or just ubuntu:latest

But the parameters the cmdlets ask for, are 3 separate parameters as stated above.

To improve usability, I think we should let the users formulate the complete image names themselves, than to have this logic added in the cmdlets.

This will eliminate the need for 3 parameters, and streamline them into 1, similar to docker cli.

In docker tag scenario, it doubles the number of parameters.

Current scenario:

Invoke-DockerTag -Registry localregistry -ImageName myubuntu -Tag latest -NewRegistry localregistry -NewImageName myubuntu -NewTag rc1

Proposed scenario:

Invoke-DockerTag -ImageName localregistry/myubuntu:latest -NewImageName localregistry/myubuntu:rc1

In short, merge these parameters below into just -ImageName:

  • -Registry
  • -Tag
@rasmusjelsgaard rasmusjelsgaard added idea Idea/suggestion for an improvement or new feature enhancement New feature or request labels Nov 1, 2019
@rasmusjelsgaard rasmusjelsgaard added this to the 0.7 milestone Nov 21, 2019
@rasmusjelsgaard rasmusjelsgaard self-assigned this Mar 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request idea Idea/suggestion for an improvement or new feature
Projects
None yet
Development

No branches or pull requests

2 participants