Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
snowmerak committed May 14, 2023
1 parent 33fedaa commit 55053f6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

`new`는 새로운 프로젝트나 커맨드 패키지를 생성합니다.

### new module 예시
### new module

`jetti new <module-name>`을 실행하면 현재 폴더에서 `go mod <module-name>`을 실행하면서 다음과 같은 기본 폴더들을 만들어줍니다.

Expand All @@ -29,7 +29,7 @@
4 directories, 5 files
```

### new command 예시
### new command

`jetti new --cmd <cmd-name>`을 실행하면 현재 폴더 내의 `cmd` 폴더에 `<cmd-name>` 폴더를 만들고, `main.go` 파일을 만들어줍니다.

Expand All @@ -53,6 +53,21 @@
5 directories, 6 files
```

### new proto

`jetti new --proto <path/name>`을 실행하면 현재 폴더 내의 `<path>` 폴더를 만들고, `<name>.proto` 파일을 만듭니다.

다음 예시는 `jetti new --proto model/proto/person`를 실행한 결과입니다.

```protobuf
syntax = "proto3";
package person;
option go_package = "model/proto/person";
```

## run

`run``cmd` 내의 커맨드 패키지를 실행하는 역할을 합니다.
Expand Down

0 comments on commit 55053f6

Please sign in to comment.