Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

[Bug] Graphback Init command is not working with custom template #1043

Closed
craicoverflow opened this issue Apr 3, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@craicoverflow
Copy link

graphback init <name> --templateUrl is not working.

Steps to Reproduce

Install the latest version of Graphback

Run:

$ graphback init test --templateUrl=https://github.com/aerogear/modern-appdev-workshop

Create Graphback project from available templates

Positionals:
  name  Project name                                         [string] [required]

Options:
  --templateName  Name of the predefined template                       [string]
  --templateUrl   GitHub URL of the template. For example
                  (http://github.com/wtrocki/graphback-hapijs#master)   [string]
  -h, --help      Show help                                            [boolean]
  -v, --version   Show version number                                  [boolean]

CwdError: ENOENT: Cannot cd into '/home/ephelan/code/playground/test'
    at /home/ephelan/code/aerogear/graphback/packages/graphback-cli/node_modules/tar/lib/mkdir.js:100:17
    at FSReqCallback.oncomplete (fs.js:154:23) {
  path: '/home/ephelan/code/playground/test',
  code: 'ENOENT'
}
@craicoverflow craicoverflow added the bug Something isn't working label Apr 3, 2020
@wtrocki
Copy link
Contributor

wtrocki commented Apr 3, 2020

I think positional parameters need to be the last before named ones.

graphback init --templateUrl=https://github.com/aerogear/modern-appdev-workshop test 

@craicoverflow
Copy link
Author

I think positional parameters need to be the last before named ones.

graphback init --templateUrl=https://github.com/aerogear/modern-appdev-workshop test 

This gives the same error result.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants