package shell

import (
	
	
	
	

	
	
)

// This type is the interface that the line editor has to satisfy. It is needed so that this package
// does not depend on the edit package.
type editor interface {
	ReadCode() (string, error)
	RunAfterCommandHooks(src parse.Source, duration float64, err error)
}

type minEditor struct {
	in  *bufio.Reader
	out io.Writer
}

func (,  *os.File) *minEditor {
	return &minEditor{bufio.NewReader(), }
}

// RunAfterCommandHooks is a no-op in the minimum editor since it doesn't support
// `edit:after-command` hooks. The method is needed to satisfy the `editor` interface.
func ( *minEditor) ( parse.Source,  float64,  error) {
}

func ( *minEditor) () (string, error) {
	,  := os.Getwd()
	if  != nil {
		 = "?"
	}
	fmt.Fprintf(.out, "%s> ", )
	,  := .in.ReadString('\n')
	return strutil.ChopLineEnding(), 
}