abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.69k stars 196 forks source link

The example doesn't work. #57

Closed kubawi closed 7 years ago

kubawi commented 7 years ago

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'unknown field 'Aliases' in struct literal of type ishell.Cmd' at: '44,3' source: ''

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'c.MultiChoice undefined (type *ishell.Context has no field or method MultiChoice)' at: '72,4' source: ''

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'c.Checklist undefined (type *ishell.Context has no field or method Checklist)' at: '92,4' source: ''

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'shell.Process undefined (type *ishell.Shell has no field or method Process)' at: '193,3' source: ''

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'shell.Run undefined (type *ishell.Shell has no field or method Run)' at: '196,3' source: ''

file: 'file:///c%3A/Users/wiecbuk/go/src/stash.dts.fm.rbsgrp.net/ep/edt_command_client.git/spike.go' severity: 'Error' message: 'shell.Close undefined (type *ishell.Shell has no field or method Close)' at: '198,3' source: ''

abiosoft commented 7 years ago

Looks like you have an older version of the library in your GOPATH and a more recent example.

Run go get -u github.com/abiosoft/ishell.