Documentation
¶
Index ¶
- func CloneRepos(config *dao.Config, projects []dao.Project, syncFlags core.SyncFlags) error
- func ExecTTY(cmd string, envs []string) error
- func PrintProjectInit(projects []dao.Project)
- func PrintProjectStatus(config *dao.Config, projects []dao.Project) error
- func RunTableCmd(t TableCmd, data dao.TableOutput, dataMutex *sync.RWMutex, wg *sync.WaitGroup) error
- func RunTextCmd(t TableCmd, textStyle dao.Stream, prefix string, parallel bool, ...) error
- func UpdateGitignoreIfExists(config *dao.Config) error
- type Client
- type Exec
- func (e *Exec) CheckTaskNoColor()
- func (exec *Exec) ParseTask(userArgs []string, runFlags *core.RunFlags, setRunFlags *core.SetRunFlags) error
- func (exec *Exec) Run(userArgs []string, runFlags *core.RunFlags, setRunFlags *core.SetRunFlags) error
- func (exec *Exec) RunTUI(userArgs []string, runFlags *core.RunFlags, setRunFlags *core.SetRunFlags, ...) error
- func (exec *Exec) SetClients(clientCh chan Client, errCh chan error) error
- func (exec *Exec) SetCloneClients(clientCh chan Client) error
- func (exec *Exec) Table(runFlags *core.RunFlags) dao.TableOutput
- func (exec *Exec) TableWork(rIndex int, dryRun bool, data dao.TableOutput, dataMutex *sync.RWMutex) error
- func (exec *Exec) Text(dryRun bool, stdout io.Writer, stderr io.Writer)
- func (exec *Exec) TextWork(rIndex int, prefixMaxLen int, dryRun bool, stdout io.Writer, stderr io.Writer) error
- type TableCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepos ¶
func PrintProjectInit ¶
func RunTableCmd ¶
func RunTextCmd ¶
func UpdateGitignoreIfExists ¶
Types ¶
type Client ¶
type Client struct { Name string Path string Env []string // contains filtered or unexported fields }
Client is a wrapper over the SSH connection/sessions.
type Exec ¶
func (*Exec) CheckTaskNoColor ¶
func (e *Exec) CheckTaskNoColor()
func (*Exec) ParseTask ¶
func (exec *Exec) ParseTask(userArgs []string, runFlags *core.RunFlags, setRunFlags *core.SetRunFlags) error
ParseTask processes and updates task configurations based on runtime flags and user arguments. It handles theme, specification, environment variables, and execution settings for each task.
The function performs these operations for each task: 1. Evaluates configuration environment variables 2. Updates theme if specified 3. Updates spec settings if provided 4. Applies runtime execution flags 5. Processes environment variables for the task and its commands
Environment variable processing order: 1. Configuration level variables 2. Task level variables 3. Command level variables 4. User provided arguments