// backendCLIOpts returns a backend.CLIOpts object that should be passed to
// a backend that supports local CLI operations.
backendCLIOpts returns a backend.CLIOpts object that should be passed to
a backend that supports local CLI operations.
// backendCLIOpts returns a backend . CLIOpts object that should be passed to // a backend that supports local CLI operations .
func (m *Meta) backendCLIOpts() (*backend.CLIOpts, error) {
	contextOpts, err := m.contextOpts()
	if err != nil {
		return nil, err
	}
	return &backend.CLIOpts{
		CLI:                 m.Ui,
		CLIColor:            m.Colorize(),
		ShowDiagnostics:     m.showDiagnostics,
		StatePath:           m.statePath,
		StateOutPath:        m.stateOutPath,
		StateBackupPath:     m.backupPath,
		ContextOpts:         contextOpts,
		Input:               m.Input(),
		RunningInAutomation: m.RunningInAutomation,
	}, nil
}
func ( m * Meta ) backendCLIOpts ( ) ( * backend . CLIOpts , error ) { contextOpts , err := m . contextOpts ( ) if err != nil { return nil , err } return & backend . CLIOpts { CLI : m . Ui , CLIColor : m . Colorize ( ) , ShowDiagnostics : m . showDiagnostics , StatePath : m . statePath , StateOutPath : m . stateOutPath , StateBackupPath : m . backupPath , ContextOpts : contextOpts , Input : m . Input ( ) , RunningInAutomation : m . RunningInAutomation , } , nil }
backendCLIOpts returns a backend.CLIOpts object that should be passed to
a backend that supports local CLI operations.
backendCLIOpts returns a backend . CLIOpts object that should be passed to a backend that supports local CLI operations .