Skip to content

make the exercises path if it doesn't exist #28

@cheshire137

Description

@cheshire137

I've never done Go before, but I could try to figure it out if no one else wants to tackle this. I just think it'd be friendlier if the CLI would make the directory for your exercises if it doesn't already exist, so I won't get this:

What is your exercism exercises project path?
Press Enter to select the default (/Users/sarah):
> /Users/sarah/code/exercism
panic: lstat /Users/sarah/code/exercism: no such file or directory

goroutine 1 [running]:
main.askForConfigInfo(0x0, 0x0, 0x0, 0x0, 0x0, ...)
  /Users/kytrinyx/code/go/src/github.com/exercism/cli/main.go:261 +0x6c7
main.func·004(0xc20008e520)
  /Users/kytrinyx/code/go/src/github.com/exercism/cli/main.go:101 +0x3c
github.com/codegangsta/cli.Command.Run(0x285a20, 0x5, 0x285680, 0x1, 0x2c2af0, ...)
  /Users/kytrinyx/code/go/src/github.com/codegangsta/cli/command.go:55 +0x658
github.com/codegangsta/cli.(*App).Run(0xc2000c0150, 0xc20008e000, 0x2, 0x2)
  /Users/kytrinyx/code/go/src/github.com/codegangsta/cli/app.go:64 +0x567
main.main()
  /Users/kytrinyx/code/go/src/github.com/exercism/cli/main.go:229 +0x21a

goroutine 2 [syscall]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions