internal

package
v0.0.0-...-3447f05 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package internal

Package internal

Package internal

Package internal

Package internal

Package internal

Package internal

Package internal

Index

Constants

This section is empty.

Variables

View Source
var ClaroConfigStrings = &ClaroCfg{
	Version:  1,
	Message:  "This project has been graded. The file containing the grade is located in the root directory.",
	Filename: "GRADING.md",
	Title:    "Feedback",
	Grade:    "Grade: ",
}

Functions

func AddTokenToKeyring

func AddTokenToKeyring()

AddTokenToKeyring adds a GitHub Personal Access Token to the OS keyring.

func ConfigCmd

func ConfigCmd(cmd *cobra.Command, args []string) error

func ConfigDir

func ConfigDir() string

func DeleteTokenFromKeyring

func DeleteTokenFromKeyring()

DeleteTokenFromKeyring deletes the GitHub Personal Access Token from the OS keyring.

func GetAndSaveToken

func GetAndSaveToken() string

GetAndSaveToken retrieves the GitHub Personal Access Token from the OS keyring. Returns the GitHub Personal Access Token.

Types

type ClaroCfg

type ClaroCfg struct {
	Version  int    `mapstructure:"version"`
	Message  string `mapstructure:"message"`
	Filename string `mapstructure:"filename"`
	Title    string `mapstructure:"title"`
	Grade    string `mapstructure:"grade"`
}

type CloneModel

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

CloneModel represents the model for the clone command

func NewCloneModel

func NewCloneModel() CloneModel

NewCloneModel creates a new CloneModel

func (CloneModel) Init

func (m CloneModel) Init() tea.Cmd

func (CloneModel) Update

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

func (CloneModel) View

func (m CloneModel) View() string

type PullModel

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

func NewPullModel

func NewPullModel(directory string) PullModel

func (PullModel) Init

func (m PullModel) Init() tea.Cmd

func (PullModel) PullView

func (m PullModel) PullView() string

func (PullModel) Update

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

func (PullModel) View

func (m PullModel) View() string

View renders the current view of the PullModel based on its state.

If the state is `pullDir` and repositories are available, it will display the current repository being processed. If all repositories have been pulled, it will display a message indicating the total number of repositories pulled.

Returns a string representing the current view of the PullModel.

type PushModel

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

func NewPushModel

func NewPushModel(directory string) PushModel

func (PushModel) Init

func (m PushModel) Init() tea.Cmd

func (PushModel) PushView

func (m PushModel) PushView() string

func (PushModel) Update

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

func (PushModel) View

func (m PushModel) View() string

Directories

Path Synopsis
Package tui provides the text user interface for the claro CLI tool.
Package tui provides the text user interface for the claro CLI tool.

Jump to

Keyboard shortcuts

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