Changes: bluepint renamed to blueprint; update readme
This commit is contained in:
parent
ddb7be7dff
commit
e4e725f955
18
README.md
18
README.md
@ -5,17 +5,29 @@
|
||||
`<TEMP_DIR/blueprint-*` - Временная папка приложения, создается на время работы приложения.
|
||||
|
||||
## Установка и начало работы
|
||||
#### 1. Добавьте в `GOPRIVATE` `penahub.gitlab.yandexcloud.net/pena-services/blueprint`.
|
||||
|
||||
```bash
|
||||
go install penahub.gitlab.yandexcloud.net/pena-services/bluepint
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
$Env:GOPRIVATE="penahub.gitlab.yandexcloud.net/pena-services/blueprint"
|
||||
```
|
||||
**Linux:**
|
||||
```bash
|
||||
export GOPRIVATE="penahub.gitlab.yandexcloud.net/pena-services/blueprint"
|
||||
```
|
||||
#### 2. Установите пакет Blueprint.
|
||||
```bash
|
||||
go install penahub.gitlab.yandexcloud.net/pena-services/blueprint@latest
|
||||
```
|
||||
|
||||
#### 3. Перейдите в папку нового проекта для работы.
|
||||
|
||||
```bash
|
||||
cd ./path-to-the-new-project
|
||||
```
|
||||
|
||||
```bash
|
||||
bluepint
|
||||
blueprint
|
||||
```
|
||||
|
||||
## Структура Blueprint-проекта и работа с приложением
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint/modules/env"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint/modules/logger"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint/modules/env"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint/modules/logger"
|
||||
)
|
||||
|
||||
type BlueprintCreator struct {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module penahub.gitlab.yandexcloud.net/pena-services/bluepint
|
||||
module penahub.gitlab.yandexcloud.net/pena-services/blueprint
|
||||
|
||||
go 1.21.0
|
||||
|
||||
|
2
main.go
2
main.go
@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/cmd"
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/blueprint/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
Loading…
Reference in New Issue
Block a user