Add offline pipeline inspection and shared native resource preflight
This commit is contained in:
@@ -31,6 +31,13 @@ type loadedSelection struct {
|
||||
engine *promptkit.Engine
|
||||
}
|
||||
|
||||
func checkConfigSelection(selection ckconfig.Selection) error {
|
||||
if selection.Config.Set && strings.TrimSpace(selection.Config.Value) == "" {
|
||||
return fmt.Errorf("--config must not be empty")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (loaders *nativeLoaders) application(ctx context.Context, selection ckconfig.Selection) (*configkit.Result[config.Document], error) {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user