version bump, handlermanifest fix, readme updated (#14)

This commit is contained in:
Laveesh Rohra 2020-09-10 17:57:18 -07:00 коммит произвёл GitHub
Родитель 1e18f62e1e
Коммит ecd8f15233
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 44 добавлений и 11 удалений

Просмотреть файл

@ -2,12 +2,12 @@
"name": "GuestAgentTestExtension",
"version": 1.0,
"handlerManifest": {
"installCommand": "bin/GuestAgentTestExtension --command=install",
"uninstallCommand": "bin/GuestAgentTestExtension --command=uninstall",
"updateCommand": "bin/GuestAgentTestExtension --command=update",
"enableCommand": "bin/GuestAgentTestExtension --command=enable",
"disableCommand": "bin/GuestAgentTestExtension --command=disable",
"updateMode": "UpdateWithoutInstall",
"installCommand": "bin/GuestAgentTestExtension_linux --command=install",
"uninstallCommand": "bin/GuestAgentTestExtension_linux --command=uninstall",
"updateCommand": "bin/GuestAgentTestExtension_linux --command=update",
"enableCommand": "bin/GuestAgentTestExtension_linux --command=enable",
"disableCommand": "bin/GuestAgentTestExtension_linux --command=disable",
"updateMode": "UpdateWithInstall",
"rebootAfterInstall": false,
"reportHeartbeat": false
}

Просмотреть файл

@ -13,10 +13,43 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
# Building the Binaries
To run the program, you should use the make build_all command. This will create a "bin" directory and then put
executables for all supported operating systems into the folder.
Binaries will be placed under `bin/` directory. The name would be `GuestAgentTestExtension_windows.exe` and `GuestAgentTestExtension_linux` based on the OS you build it for.
To build the binaries, run either of the following commands -
For usage information, run the binary with the help flag ie (--h or --help)
- Build Without dependencies -
- `make build_all` - Use this command to build windows and linux binaries.
- `make build_windows` - Build only windows binaries.
- `make build_linux` - Build only linux binaries.
- Build with dependencies -
- `make build_all_with_deps` - Use this command to build windows and linux binaries with dependencies.
- `make build_windows` - Build only windows binaries with dependencies.
- `make build_linux` - Build only linux binaries with dependencies.
- Download dependencies -
- `make deps`
- Clean project - Delete all binaries
- `make clean`
# Running the program
To run the program, just run the binary.
For usage information and a list of all available options, run the binary with the help flag ie (--h or --help).
```text
.\bin\GuestAgentTestExtension_win.exe --help
Usage of C:\GIT-GA-Test-Extension\guest-agent-test-extension\bin\GuestAgentTestExtension_win.exe:
-command string
Valid commands are install, enable, update, disable and uninstall. Usage: --command=install
-failCommandFile string
Path to the JSON file loction. Usage --failCommandFile="test.json"
```
Example:
`.\bin\GuestAgentTestExtension_win.exe -command=install --failCommandFile=="sample-fail-commands.json"`

Просмотреть файл

@ -19,7 +19,7 @@ var (
versionMajor = "1"
versionMinor = "0"
versionBuild = "0"
versionRevision = "1"
versionRevision = "2"
version = fmt.Sprintf("%s.%s.%s.%s", versionMajor, versionMinor, versionBuild, versionRevision)
extensionMrSeq int