-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf5d798
commit 9c789ff
Showing
6 changed files
with
238 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/brokeyourbike/macadmin.go/helpers" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var feedUrl string | ||
|
||
var getCmd = &cobra.Command{ | ||
Use: "get", | ||
Short: "Parses Apple's feed of macOS IPSWs and lets you download one.", | ||
Long: `Parses Apple's feed of macOS IPSWs and lets you download one.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
ipfs, err := helpers.FetchIpswData(feedUrl) | ||
|
||
if err != nil { | ||
panic(err) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
getCmd.Flags().StringVarP(&feedUrl, "feed_url", "f", "https://mesu.apple.com/assets/macos/com_apple_macOSIPSW/com_apple_macOSIPSW.xml", "Url to Apple's feed of macOS IPSWs") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.