cmd

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: AGPL-3.0, AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Copyright © 2023 Mukul Agarwal

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This file is adapted from https://github.com/charmbracelet/bubbletea/blob/master/examples/pager/main.go. As such, it is licensed under the terms of https://github.com/charmbracelet/bubbletea. As of the time of creation of this file (Sep. 13, 2023), this was the MIT License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Question

type Question struct {
	Header       string
	Desc         string
	Subquestions []SubQuestion
}

type ScrollViewModel

type ScrollViewModel struct {
	// contains filtered or unexported fields
}

func (ScrollViewModel) Init

func (m ScrollViewModel) Init() tea.Cmd

func (ScrollViewModel) Update

func (m ScrollViewModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ScrollViewModel) View

func (m ScrollViewModel) View() string

type StringModel

type StringModel struct {
	// contains filtered or unexported fields
}

func (StringModel) Init

func (m StringModel) Init() tea.Cmd

func (StringModel) Update

func (m StringModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (StringModel) View

func (m StringModel) View() string

type SubQuestion

type SubQuestion struct {
	Header          string
	Subsubquestions []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL