MCPcopy Create free account
hub / github.com/SamNet-dev/snix / newScanModel

Function newScanModel

tui/scan.go:52–65  ·  view source on GitHub ↗
(a *App)

Source from the content-addressed store, hash-verified

50}
51
52func newScanModel(a *App) scanModel {
53 t := textinput.New()
54 t.Placeholder = "1.1.1.1"
55 t.SetValue("1.1.1.1")
56 t.CharLimit = 40
57 t.Width = 20
58
59 return scanModel{
60 app: a,
61 target: t,
62 sniBar: progress.New(progress.WithDefaultGradient(), progress.WithWidth(40)),
63 ipBar: progress.New(progress.WithDefaultGradient(), progress.WithWidth(40)),
64 }
65}
66
67func (m scanModel) Init() tea.Cmd { return nil }
68

Callers 1

newAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected