Changes: bluepint renamed to blueprint; update readme

This commit is contained in:
Danil Solovyov 2023-12-27 22:14:12 +05:00
parent ddb7be7dff
commit e4e725f955
5 changed files with 20 additions and 8 deletions

@ -5,17 +5,29 @@
`<TEMP_DIR/blueprint-*` - Временная папка приложения, создается на время работы приложения. `<TEMP_DIR/blueprint-*` - Временная папка приложения, создается на время работы приложения.
## Установка и начало работы ## Установка и начало работы
#### 1. Добавьте в `GOPRIVATE` `penahub.gitlab.yandexcloud.net/pena-services/blueprint`.
```bash **Windows (PowerShell):**
go install penahub.gitlab.yandexcloud.net/pena-services/bluepint ```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 ```bash
cd ./path-to-the-new-project cd ./path-to-the-new-project
``` ```
```bash ```bash
bluepint blueprint
``` ```
## Структура Blueprint-проекта и работа с приложением ## Структура Blueprint-проекта и работа с приложением

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"path/filepath" "path/filepath"
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint/modules/env" "penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint/modules/env"
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint/modules/logger" "penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint/modules/logger"
) )
type BlueprintCreator struct { type BlueprintCreator struct {

@ -9,7 +9,7 @@ import (
"strings" "strings"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/blueprint" "penahub.gitlab.yandexcloud.net/pena-services/blueprint/blueprint"
) )
type App struct { type App struct {

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 go 1.21.0

@ -1,7 +1,7 @@
package main package main
import ( import (
"penahub.gitlab.yandexcloud.net/pena-services/bluepint/cmd" "penahub.gitlab.yandexcloud.net/pena-services/blueprint/cmd"
) )
func main() { func main() {