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

Subcommand alias feature like 'git config alias.foo bar' #232

Closed
AvianY opened this issue Apr 8, 2018 · 4 comments
Closed

Subcommand alias feature like 'git config alias.foo bar' #232

AvianY opened this issue Apr 8, 2018 · 4 comments

Comments

@AvianY
Copy link
Contributor

AvianY commented Apr 8, 2018

I think the volt commands would be more consistent with following ideas:

Instead of $volt get -u for updating, there could be a separate command like $volt update

The $volt get command as of now, downloads and enables the plugins. So basically it does the same as the command $volt enable, but it also downloads the plugin if it doesn't exist. Instead of that, the $volt get command could just download the plugin without enabling it. But if the user wants to enable it at the same time, he could just write something like $volt get -e <repo> (-e for enable).

what do you think?

@tyru
Copy link
Member

tyru commented Apr 8, 2018

Instead of $volt get -u for updating, there could be a separate command like $volt update

volt get -u guarantees given plugins exist and are updated to the latest with no error.
It installs if it's not installed, or updates to the latest if it's installed.

Isn't it enough to add command alias feature like git config alias.update get -u?

The $volt get command as of now, downloads and enables the plugins.

hmm, if I try to add enable/disable control option, I'll add -no-enable option (don't add specified plugins to current profile).
Because profile feature is optional, user can use it but also can choose not to use it.
If volt get foo/bar does not enable (does not add to current profile) given plugins by default, the user is confused if he/she does not know profile feature.

@AvianY
Copy link
Contributor Author

AvianY commented Apr 8, 2018 via email

@tyru tyru changed the title More consistent volt commands? Subcommand alias feature like 'git config alias.foo bar' Apr 8, 2018
@tyru
Copy link
Member

tyru commented Apr 8, 2018

Okay, I edited the title :)

@tyru
Copy link
Member

tyru commented Apr 9, 2018

I have implemented this feature in devel branch.
You can write the following to config.toml:

[alias]
update = ["get", "-u"]

And

$ volt update foo/bar.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants