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

feat: fvm user interface improvements #3683

Merged

Conversation

EstebanBorai
Copy link
Contributor

@EstebanBorai EstebanBorai commented Nov 10, 2023

These are a couple of very small changes in FVM to make the UI more intuitive.

  • Use fvm list over fvm show for listing installed versions (4ad1b91)
  • After switching between channels (e.g. fvm switch stable or fvm switch latest), render the underlying tag (82621f2)

Demo


Using switch on Channels now prints the underlying tag

Now `fvm list` is used to list versions

@EstebanBorai EstebanBorai linked an issue Nov 10, 2023 that may be closed by this pull request
@EstebanBorai EstebanBorai marked this pull request as ready for review November 10, 2023 19:01
Comment on lines +72 to +83
if version.is_version_tag() {
notify.done(format!(
"Now using Fluvio version {}",
version.to_string().bold(),
));
} else {
notify.done(format!(
"Now using Fluvio {} ({})",
version.to_string().bold(),
version_dir.manifest.version.to_string().bold(),
));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For version tags, say fvm switch 0.10.11, rendering the tag between parenthesis is redundant so its discriminated by the nature of the Channel instance provided.

We just want to render the specific tag for Channels.

fvm switch 0.10.15
...
done: Now using Fluvio version 0.10.15

And with Channels

fvm switch stable
...
done: Now using Fluvio stable (0.10.17)

Copy link
Contributor

@digikata digikata left a comment

Choose a reason for hiding this comment

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

LGTM

@EstebanBorai EstebanBorai added this pull request to the merge queue Nov 10, 2023
Merged via the queue into infinyon:master with commit 899796b Nov 10, 2023
104 checks passed
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.

FVM - User Interface Improvements
2 participants