MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / NewModifyModelWithPresets

Function NewModifyModelWithPresets

tui/modify.go:104–109  ·  view source on GitHub ↗

NewModifyModelWithPresets creates a modifyModel with pre-filled values from CLI flags.

(client *api.Client, instance *api.Instance, specs *utils.SpecStore, presets *ModifyPresets)

Source from the content-addressed store, hash-verified

102
103// NewModifyModelWithPresets creates a modifyModel with pre-filled values from CLI flags.
104func NewModifyModelWithPresets(client *api.Client, instance *api.Instance, specs *utils.SpecStore, presets *ModifyPresets) modifyModel {
105 m := NewModifyModel(client, instance, specs).(modifyModel)
106 m.presets = presets
107 m.trySkipCurrentStep()
108 return m
109}
110
111// trySkipCurrentStep loops forward through steps, auto-filling each one from
112// presets if the preset value is valid given the current config state.

Callers 1

RunModifyHybridFunction · 0.85

Calls 2

NewModifyModelFunction · 0.85
trySkipCurrentStepMethod · 0.45

Tested by

no test coverage detected