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

Method IsEmpty

tui/modify.go:49–52  ·  view source on GitHub ↗

IsEmpty returns true if no preset flags were set.

()

Source from the content-addressed store, hash-verified

47
48// IsEmpty returns true if no preset flags were set.
49func (p *ModifyPresets) IsEmpty() bool {
50 return p.GPUType == nil && p.NumGPUs == nil &&
51 p.VCPUs == nil && p.DiskSizeGB == nil
52}
53
54type modifyModel struct {
55 step modifyStep

Callers 3

TestBuildModifyPresetsFunction · 0.45
runModifyFunction · 0.45
runCreateFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestBuildModifyPresetsFunction · 0.36