Skip to content

Commit

Permalink
changed project name
Browse files Browse the repository at this point in the history
  • Loading branch information
mt190502 committed Sep 6, 2023
1 parent c908739 commit c6d69cd
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 47 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
34 changes: 17 additions & 17 deletions README.tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module wmi-rest
module hyper-v-rest-ps

go 1.20

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hyperv/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hyperv

import (
"net/http"
"wmi-rest/utilities"
"hyper-v-rest-ps/utilities"

"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion hyperv/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hyperv

import (
"net/http"
"wmi-rest/utilities"
"hyper-v-rest-ps/utilities"

"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion hyperv/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hyperv

import (
"net/http"
"wmi-rest/utilities"
"hyper-v-rest-ps/utilities"

"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion hyperv/vhd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path/filepath"
"sync"
"wmi-rest/utilities"
"hyper-v-rest-ps/utilities"

"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion hyperv/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hyperv

import (
"net/http"
"wmi-rest/utilities"
"hyper-v-rest-ps/utilities"

"github.com/gin-gonic/gin"
)
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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,
}

Expand Down
2 changes: 1 addition & 1 deletion rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strconv"
"time"
"wmi-rest/hyperv"
"hyper-v-rest-ps/hyperv"

"github.com/gin-gonic/gin"
)
Expand Down

0 comments on commit c6d69cd

Please sign in to comment.