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

accept filename argument in vm iso/img commands #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moracca
Copy link
Contributor

@moracca moracca commented Oct 20, 2022

sometimes the filename cannot be easily discovered from the basename of the URL, such as when the file is determined by URL params (such as when direct downloading a Google drive file).

This commit allows the use of a -f command on the iso and img commands to let the user specify the filename of the fetched file:

vm iso -f newfilename.iso 'https://drive.google.com/uc?export=download&confirm=t&id=1DVsS6...HEf0sb'

This results in a sensible name instead of "uc?export=download&confirm=t"

sometimes the filename cannot be easily discovered from the basename of the URL,
such as when the file is determined by URL params (such as when direct downloading
a Google drive file).  

This commit allows the use of a -f command on the iso and img commands to let the
user specify the filename of the fetched file:
```
vm iso -f newfilename.iso 'https://drive.google.com/uc?export=download&confirm=t&id=1DVsS6...HEf0sb'
```

This results in a sensible name instead of "uc?export=download&confirm=t"
@mateuszkwiatkowski
Copy link
Collaborator

Looks good to me.

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.

None yet

2 participants