Closed piotrkochan closed 4 years ago
hi @piotrkochan, I'm sorry you had a bad experience! It looks like using a -
in the name
field at the moment breaks things!
lile new piotrkochan/lile-test --name "github.com/piotrkochan/lile_test"
would work fine! But I should definitely fix this
All right, I'll try this tomorrow! Thanks for fast response
Closing due to inactivity, let me know if you need anything else!
Sorry but it still does not work:
➜ kochan cd $GOPATH
➜ go lile new lileio/users
Error: required flag(s) "name" not set
Usage:
lile new [name] [flags]
Flags:
--dir string the directory to create the service
-h, --help help for new
--name string the module name i.e (github.com/username/project)
required flag(s) "name" not set
I've tried like this:
➜ go pwd
/Users/piotr/go
➜ go lile new kochan/liletest --name "kochan/liletest"
Creating project in liletest
Is this OK? [y]es/[n]o
y
.
├── server
│ ├── server.go
│ └── server_test.go
├── subscribers
│ └── subscribers.go
├── liletest
I assume it should create project in $GOPATH/src/kochan/liletest
directory. Now it is $GOPATH/liletest
In README:
In real life:
Trying with
--name
arg as in example (--name string the module name i.e (github.com/username/project
):Other try:
Generated code is not placed in $GOPATH as described but in the directory I'm currently in (
is smart enough to parse your new service's name to create the service in the right place.
seems a little bit wrong :))