Skip to content

Interactive input git bash #56

@Codelax

Description

@Codelax

Describe the bug
cli instant close stdin instead of waiting for user input

To Reproduce
Do ctpm init in the correct environment

Please tell us about your environment:

  • Terminal: Git Bash
  • OS: Windows 10

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

$ ctpm init
? Project name Error: failed to init project config: Incorrect function.
Usage:
  ctpm init [path] [flags]

Flags:
      --desc string      Project description when using non-interactive mode
  -h, --help             help for init
      --license string   Project license when using non-interactive mode (default "UNLICENSED")
      --name string      Give project name to skip interactive entry and enter non-interactive mode
      --no-template      Prevents the creation of CMake files
      --type string      Project's type when using non-interactive mode
      --version string   Project version when using non-interactive mode (default "1.0.0")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions