-
Notifications
You must be signed in to change notification settings - Fork 192
UX: package command feedback #362
Comments
|
related: we added a We also initially thought that
That, or include a |
I had some of the similar issues in my limited usage of tanzu package. Since tanzu package is a package management system, I would have really loved if the cli had, where possible, followed the command pattern of either yum/dnf or apt. This way I could leverage my existing knowledge to get comfortable in the basics of tanzu package. I know there will have to be deviations because we are packaging for a different type of platform, but where possible, this would have made me feel really good as a user. |
If you look at the output of the following command
each package is described very differently. Some standardization of the descriptions and their text length would be highly welcome. |
Using this to capture my feedback as a new person trying to use the package commands.
Goal was to get a new package installed just to verify functionality. Referenced some docs being added to the TCE repo to support this, but tried to follow a typical user route of ignoring docs as much as possible.
Add new repo
To start I wanted to add the TCE repo to work with those packages. This one I had to look at the docs to figure out:
OK, a little lengthy, but seems reasonable, especially for a command that likely won't be run too often.
List packages
Now that I have the repo added, need to see what packages are available to me.
Oops, not that. Take a look at the package help. OK,
package available
. As opposed to unavailable packages I suppose?Wow, that's a lot more packages than I expected from TCE. Right, products being built on top of
tanzu-framework
got added into the framework instead of the product: #327Harbor installation
Let's pick harbor to install.
Failed. Help output scrolled off the top of my terminal, let's see if it had something useful before all the help output.
Hmm, I have it a package name, and the rest are flags, so what did I miss.
Read farther and see some of the "Examples" output. OK, even though I need to tell it what package I want to install, that's actually a named argument. Seems a little odd, since I would think that name of the package I want to install would be pretty important to a
package install
command. I'll try again.Nope, help output again. I must have missed something. Scroll back up...
I don't care about the version, I just want to install whatever package is available for harbor. I also have no idea what versions are available. Let's see, how do I do that. I didn't see any version information in
tanzu package available list
, so where can I find that out? Ah, there's aget
command fortanzu package
. I want information about a specific package, so that must be it.Well, that's a lot of details about the package, but I still don't see anything about versions I can choose from.
Finally consult someone that knows. I run
list
to get details of a specific package. Well that seems really odd, but OK.tanzu package available list harbor.community.tanzu.vmware.com - Retrieving package versions for harbor.community.tanzu.vmware.com... NAME VERSION RELEASED-AT harbor.community.tanzu.vmware.com 2.2.3 2021-07-07T18:00:00Z
What?! I had to go through all of that and there's only one version anyway? Why bother asking me. That was a waste of my valuable end user time. :)
Whew, finally I have everything I need to install...
Help output, scroll back up to see what the error was. Well, that doesn't look good. How do I provide an admin password?
Let's look at that help output again. OK, there's
-f, --values-file string
. So I must need to put that password in a values file and pass it in to the command. What's the format of that file? How do I get an example? What is the value supposed to be named for the admin password?Can't find anything, let's just create a file and try again.
It already exists? But I tried to install it and it failed. OK, if I look all the way back, the original error output mentioned
tanzu package installed update
(twice) so I guess I just have to update the failed installation.Package removal
But I still don't really know what the format of that values file should be, so maybe I should just remove this failed install so I can figure that out and start from scratch.
Looks like from the help output that there is a remove command. Oh good, it has an example, so I can list installed and use that to remove.
Whew, that worked.
The text was updated successfully, but these errors were encountered: