mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
feat: add command for arbitrary URLs (#137)
* feat: install command for direct downloads * use sha1 instead of sha256 * apply suggestions * feat: parse urls instead of using hasprefix * stop by default and add force flag * Implement various fixes and improvements Co-authored-by: Tricked <72335827+SkyBlockDev@users.noreply.github.com> Co-authored-by: comp500 <comp500@users.noreply.github.com>
This commit is contained in:
15
url/url.go
Normal file
15
url/url.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package url
|
||||
|
||||
import (
|
||||
"github.com/packwiz/packwiz/cmd"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var urlCmd = &cobra.Command{
|
||||
Use: "url",
|
||||
Short: "Add external files from a direct download link, for sites that are not directly supported by packwiz",
|
||||
}
|
||||
|
||||
func init() {
|
||||
cmd.Add(urlCmd)
|
||||
}
|
||||
Reference in New Issue
Block a user