Skip to content

Commit

Permalink
Test publish module
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen Le Anh Tuan committed Jun 9, 2024
1 parent fcb3710 commit d7787e5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ new dir/
new dir/sub1/

# Multiple files & directories
new file2.go "folder2/{{file2,file3}.go,file4.txt}"
new folder2/{{file2,file3}.go,file4.txt}
```

# Installation

```go
go install github.com/dynonguyen/new-cli
go install github.com/dynonguyen/new-cli/cmd/new@latest
```

# Usage
Expand Down
7 changes: 7 additions & 0 deletions cmd/new/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import newcli "github.com/dynonguyen/new-cli"

func main() {
newcli.Run()
}
1 change: 0 additions & 1 deletion main_test.go

This file was deleted.

4 changes: 2 additions & 2 deletions main.go → new.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main
package newcli

import "fmt"

func main() {
func Run() {
fmt.Println("HELLO NEW CLI")
}
7 changes: 7 additions & 0 deletions new_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package newcli

import "testing"

func TestNew(t *testing.T) {

}

0 comments on commit d7787e5

Please sign in to comment.