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

chore: update functionality.md #86

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions functionality.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ wowtools allows you to specify specific flags when calling the app from the CLI
- Remove the WTF and Interface folder from your PTR install folder
- Use Windows Robocopy to copy the WTF and Interface folder from your retail folder to the PTR folder.

`addoncopy`

- This flag will copy all or a specific addon from the retail folder to the folder of your choice
- If no `addonname` parameter is passed, it will copy all addons, first removing the destination folder
- If the parameter is passed, it will copy that specific addon, first deleting that folder in the destination

`update`

- This flag will run wowtools and _only_ do the following
- Check the version of the application against the latest release on github
- If the version is different, it will download the latest release to your downloads folder so you can replace the current executable

`completion`

- This flag will generate a completion script for the application based on the shell you select

`help`

- Shows help text for the application
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func main() {
help bool
versionFlag bool
wtfzip string
wowVersion string
addonName string
wowversion string
addonname string
)

util.LoadConfig(".")
Expand Down Expand Up @@ -90,7 +90,7 @@ func main() {
Short: "Copy Addon data from Retail",
Run: func(cmd *cobra.Command, args []string) {
util.SetupLogger(logging)
internal.CopyAddonData(wowVersion, addonName)
internal.CopyAddonData(wowversion, addonname)
},
}

Expand All @@ -113,8 +113,8 @@ func main() {
// addonCopyCmd Flags
addonCopyCmd.Flags().StringVarP(&logging, "logging", "l", "info", "Enables logging. Options are: trace, debug, info, warn, error, fatal, panic")
addonCopyCmd.Flags().BoolVarP(&help, "help", "h", false, "Displays useful information")
addonCopyCmd.Flags().StringVarP(&wowVersion, "wowVersion", "w", "", "The version of WoW to copy the addon data to")
addonCopyCmd.Flags().StringVarP(&addonName, "addonName", "a", "", "The name of the addon to copy")
addonCopyCmd.Flags().StringVarP(&wowversion, "wowVersion", "w", "", "The version of WoW to copy the addon data to")
addonCopyCmd.Flags().StringVarP(&addonname, "addonName", "a", "", "The name of the addon to copy")

// rootCmd Flags
rootCmd.Flags().BoolVarP(&help, "help", "h", false, "Displays useful information")
Expand Down