(a *App)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 67 | func (m scanModel) Init() tea.Cmd { return nil } |
| 68 |