diff --git a/README.md b/README.md index 2f0bacf..bff6c5e 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,14 @@ ## Installation -1. Create the `%PROGRAMFILES%\wmi-rest` directory. -2. Copy the `wmi-rest.exe` file to the `%PROGRAMFILES%\wmi-rest` directory. +1. Create the `%PROGRAMFILES%\hyper-v-rest-ps` directory. +2. Copy the `hyper-v-rest-ps.exe` file to the `%PROGRAMFILES%\hyper-v-rest-ps` directory. 3. Open Windows PowerShell as an administrator and execute the following commands: ```powershell -PS C:\WINDOWS\system32> cd "$env:PROGRAMFILES\wmi-rest" -PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=install -PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=start +PS C:\WINDOWS\system32> cd "$env:PROGRAMFILES\hyper-v-rest-ps" +PS C:\Program Files\hyper-v-rest-ps> .\hyper-v-rest-ps.exe --service=install +PS C:\Program Files\hyper-v-rest-ps> .\hyper-v-rest-ps.exe --service=start ``` ## Usage @@ -56,15 +56,15 @@ PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=start ## License -wmi-rest is GPL-3.0 licensed. See [LICENSE](LICENSE) file for details. - -[contributors-shield]: https://img.shields.io/github/contributors/monobilisim/wmi-rest.svg?style=for-the-badge -[contributors-url]: https://github.com/monobilisim/wmi-rest/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/monobilisim/wmi-rest.svg?style=for-the-badge -[forks-url]: https://github.com/monobilisim/wmi-rest/network/members -[stars-shield]: https://img.shields.io/github/stars/monobilisim/wmi-rest.svg?style=for-the-badge -[stars-url]: https://github.com/monobilisim/wmi-rest/stargazers -[issues-shield]: https://img.shields.io/github/issues/monobilisim/wmi-rest.svg?style=for-the-badge -[issues-url]: https://github.com/monobilisim/wmi-rest/issues -[license-shield]: https://img.shields.io/github/license/monobilisim/wmi-rest.svg?style=for-the-badge -[license-url]: https://github.com/monobilisim/wmi-rest/blob/master/LICENSE +hyper-v-rest-ps is GPL-3.0 licensed. See [LICENSE](LICENSE) file for details. + +[contributors-shield]: https://img.shields.io/github/contributors/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[contributors-url]: https://github.com/monobilisim/hyper-v-rest-ps/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[forks-url]: https://github.com/monobilisim/hyper-v-rest-ps/network/members +[stars-shield]: https://img.shields.io/github/stars/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[stars-url]: https://github.com/monobilisim/hyper-v-rest-ps/stargazers +[issues-shield]: https://img.shields.io/github/issues/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[issues-url]: https://github.com/monobilisim/hyper-v-rest-ps/issues +[license-shield]: https://img.shields.io/github/license/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[license-url]: https://github.com/monobilisim/hyper-v-rest-ps/blob/master/LICENSE diff --git a/README.tr.md b/README.tr.md index 99126eb..e898ebc 100644 --- a/README.tr.md +++ b/README.tr.md @@ -29,14 +29,14 @@ ## Kurulum -1. `%PROGRAMFILES%\wmi-rest` dizinini oluşturun. -2. `wmi-rest.exe` dosyasını `%PROGRAMFILES%\wmi-rest` dizinine kopyalayın. +1. `%PROGRAMFILES%\hyper-v-rest-ps` dizinini oluşturun. +2. `hyper-v-rest-ps.exe` dosyasını `%PROGRAMFILES%\hyper-v-rest-ps` dizinine kopyalayın. 3. Yönetici olarak Windows PowerShell'i açın ve aşağıdaki komutları çalıştırın: ```powershell -PS C:\WINDOWS\system32> cd "$env:PROGRAMFILES\wmi-rest" -PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=install -PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=start +PS C:\WINDOWS\system32> cd "$env:PROGRAMFILES\hyper-v-rest-ps" +PS C:\Program Files\hyper-v-rest-ps> .\hyper-v-rest-ps.exe --service=install +PS C:\Program Files\hyper-v-rest-ps> .\hyper-v-rest-ps.exe --service=start ``` ## Kullanım @@ -56,15 +56,15 @@ PS C:\Program Files\wmi-rest> .\wmi-rest.exe --service=start ## Lisans -wmi-rest, GPL-3.0 lisanslıdır. Detaylar için [LICENSE](LICENSE) dosyasına bakınız. - -[contributors-shield]: https://img.shields.io/github/contributors/monobilisim/wmi-rest.svg?style=for-the-badge -[contributors-url]: https://github.com/monobilisim/wmi-rest/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/monobilisim/wmi-rest.svg?style=for-the-badge -[forks-url]: https://github.com/monobilisim/wmi-rest/network/members -[stars-shield]: https://img.shields.io/github/stars/monobilisim/wmi-rest.svg?style=for-the-badge -[stars-url]: https://github.com/monobilisim/wmi-rest/stargazers -[issues-shield]: https://img.shields.io/github/issues/monobilisim/wmi-rest.svg?style=for-the-badge -[issues-url]: https://github.com/monobilisim/wmi-rest/issues -[license-shield]: https://img.shields.io/github/license/monobilisim/wmi-rest.svg?style=for-the-badge -[license-url]: https://github.com/monobilisim/wmi-rest/blob/master/LICENSE +hyper-v-rest-ps, GPL-3.0 lisanslıdır. Detaylar için [LICENSE](LICENSE) dosyasına bakınız. + +[contributors-shield]: https://img.shields.io/github/contributors/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[contributors-url]: https://github.com/monobilisim/hyper-v-rest-ps/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[forks-url]: https://github.com/monobilisim/hyper-v-rest-ps/network/members +[stars-shield]: https://img.shields.io/github/stars/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[stars-url]: https://github.com/monobilisim/hyper-v-rest-ps/stargazers +[issues-shield]: https://img.shields.io/github/issues/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[issues-url]: https://github.com/monobilisim/hyper-v-rest-ps/issues +[license-shield]: https://img.shields.io/github/license/monobilisim/hyper-v-rest-ps.svg?style=for-the-badge +[license-url]: https://github.com/monobilisim/hyper-v-rest-ps/blob/master/LICENSE diff --git a/go.mod b/go.mod index 8daa63e..496710f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module wmi-rest +module hyper-v-rest-ps go 1.20 diff --git a/wmi-rest.iml b/hyper-v-rest-ps.iml similarity index 100% rename from wmi-rest.iml rename to hyper-v-rest-ps.iml diff --git a/hyperv/memory.go b/hyperv/memory.go index fc4f513..2442244 100644 --- a/hyperv/memory.go +++ b/hyperv/memory.go @@ -2,7 +2,7 @@ package hyperv import ( "net/http" - "wmi-rest/utilities" + "hyper-v-rest-ps/utilities" "github.com/gin-gonic/gin" ) diff --git a/hyperv/network.go b/hyperv/network.go index 331409c..73bd158 100644 --- a/hyperv/network.go +++ b/hyperv/network.go @@ -2,7 +2,7 @@ package hyperv import ( "net/http" - "wmi-rest/utilities" + "hyper-v-rest-ps/utilities" "github.com/gin-gonic/gin" ) diff --git a/hyperv/processor.go b/hyperv/processor.go index 8782831..d652609 100644 --- a/hyperv/processor.go +++ b/hyperv/processor.go @@ -2,7 +2,7 @@ package hyperv import ( "net/http" - "wmi-rest/utilities" + "hyper-v-rest-ps/utilities" "github.com/gin-gonic/gin" ) diff --git a/hyperv/vhd.go b/hyperv/vhd.go index 8ae8e15..ba88b44 100644 --- a/hyperv/vhd.go +++ b/hyperv/vhd.go @@ -7,7 +7,7 @@ import ( "os" "path/filepath" "sync" - "wmi-rest/utilities" + "hyper-v-rest-ps/utilities" "github.com/gin-gonic/gin" ) diff --git a/hyperv/vm.go b/hyperv/vm.go index b7ff02d..260f680 100644 --- a/hyperv/vm.go +++ b/hyperv/vm.go @@ -2,7 +2,7 @@ package hyperv import ( "net/http" - "wmi-rest/utilities" + "hyper-v-rest-ps/utilities" "github.com/gin-gonic/gin" ) diff --git a/main.go b/main.go index 360ac43..df09c05 100644 --- a/main.go +++ b/main.go @@ -5,9 +5,9 @@ import ( "os" "time" - "wmi-rest/hyperv" - "wmi-rest/rest" - "wmi-rest/utilities" + "hyper-v-rest-ps/hyperv" + "hyper-v-rest-ps/rest" + "hyper-v-rest-ps/utilities" "github.com/kardianos/service" ) @@ -82,9 +82,9 @@ func main() { options["Restart"] = "on-success" options["SuccessExitStatus"] = "1 2 8 SIGKILL" svcConfig := &service.Config{ - Name: "wmi-rest", - DisplayName: "WMI REST", - Description: "Simple REST service for some WMI features", + Name: "hyper-v-rest-ps", + DisplayName: "Hyper-V REST PowerShell", + Description: "Simple REST service for some Hyper-V features.", Option: options, } diff --git a/rest/rest.go b/rest/rest.go index 8383ae5..05963a5 100644 --- a/rest/rest.go +++ b/rest/rest.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" "time" - "wmi-rest/hyperv" + "hyper-v-rest-ps/hyperv" "github.com/gin-gonic/gin" )