func DefaultContext() (*Context, error) {
	dir, err := os.Getwd()
	if err != nil {
		return nil, err
	}
	abs, err := filepath.Abs(dir)
	if err != nil {
		return nil, err
	}
	ctx := &Context{
		Dir:    abs,
		Stdin:  os.Stdin,
		Stdout: os.Stdout,
		Stderr: os.Stderr,
	}
	ctx.Context = context.Background()
	return ctx, nil
}
// DefaultContext returns a Context suitable for use in non-hosted situations.
DefaultContext returns a Context suitable for use in non-hosted situations.
// DefaultContext returns a Context suitable for use in non - hosted situations .
func DefaultContext() (*Context, error) {
	dir, err := os.Getwd()
	if err != nil {
		return nil, err
	}
	abs, err := filepath.Abs(dir)
	if err != nil {
		return nil, err
	}
	ctx := &Context{
		Dir:    abs,
		Stdin:  os.Stdin,
		Stdout: os.Stdout,
		Stderr: os.Stderr,
	}
	ctx.Context = context.Background()
	return ctx, nil
}
func DefaultContext ( ) ( * Context , error ) { dir , err := os . Getwd ( ) if err != nil { return nil , err } abs , err := filepath . Abs ( dir ) if err != nil { return nil , err } ctx := & Context { Dir : abs , Stdin : os . Stdin , Stdout : os . Stdout , Stderr : os . Stderr , } ctx . Context = context . Background ( ) return ctx , nil }
DefaultContext returns a Context suitable for use in non-hosted situations.
DefaultContext returns a Context suitable for use in non - hosted situations .