You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
@@ -32,8 +32,34 @@ To make it available to all users `sudo mv vmd-<os>-<version> /usr/local/bin/vmd
32
32
# Display example manifest file
33
33
vmd get manifestexample
34
34
```
35
+
Example manifest to use with `vmd download -m <filename>.yml`
36
+
```
37
+
---
38
+
# This section will download the latest version of vmware_tools
39
+
# Each glob pattern will download a single file each
40
+
product: vmware_tools
41
+
subproduct: vmtools
42
+
version: "*"
43
+
filename_globs:
44
+
- "VMware-Tools-darwin-*.tar.gz"
45
+
- "VMware-Tools-darwin-*.zip"
46
+
---
47
+
# This section will download the latest minor release from major version 10
48
+
# The single glob pattern will download 2 files
49
+
product: vmware_tools
50
+
subproduct: vmtools
51
+
version: "10.*"
52
+
filename_globs:
53
+
- "VMware-Tools-other-*"
54
+
---
55
+
```
56
+
# Known Issues
57
+
- When working in a shell if you add a * to the filename arguement of the download command and you are in a directory where a file matches the pattern, your shell will replace the * to pass in the full file name. This can be worked around by wrapping the file name in single quotes, or by defining the download in a manifest yaml.
58
+
- Some products such as horizon will not return the latest version when only a glob is provided. This is because the product switched naming standards meaning it breaks the sort of the version.
59
+
- Some product descriptions don't display fully. This is especially true for the horizon products as they are inconsistently named, meaning it's difficult to extract the version number without taking out part of the product name.
60
+
35
61
# Testing
36
-
To run commands against source use `alias vmd="go run main.go`</br>
62
+
To run commands against source use `alias vmd="go run main.go"`</br>
downloadCmd.Flags().StringVarP(&version, "version", "v", "", "Version string. Can contain a glob.")
112
-
downloadCmd.Flags().StringVarP(&fileName, "filename", "f", "", "Filename string. Can contain one or more globs.")
112
+
downloadCmd.Flags().StringVarP(&fileName, "filename", "f", "", "Filename string. Can contain one or more globs. When using * wrap the text in single quotes.")
113
113
downloadCmd.Flags().StringVarP(&manifestFile, "manifest", "m", "", "Filename of the manifest containing details of what to download")
114
114
downloadCmd.Flags().StringVarP(&outputDir, "output", "o", "", "Directory to download files to")
0 commit comments