Skip to content

accept filename argument in vm iso/img commands#488

Open
moracca wants to merge 1 commit intochurchers:masterfrom
moracca:patch-1
Open

accept filename argument in vm iso/img commands#488
moracca wants to merge 1 commit intochurchers:masterfrom
moracca:patch-1

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.

2 participants