Documentation
¶
Overview ¶
Package shellpath is what a person types in the shells of this computer: the command icebath and the shell commands of the profiles on the PATH of every shell they use, with the completions of icebath, looked at and put right from inside the program; and what an install script leaves the program to finish the first time it starts, the completions and the programs its features use
Index ¶
- Constants
- type Item
- type Line
- type Report
- type ShellPath
- func (s *ShellPath) Close() error
- func (s *ShellPath) Folders() []string
- func (s *ShellPath) Report(ctx context.Context) Report
- func (s *ShellPath) SetUp(ctx context.Context) ([]Line, string, error)
- func (s *ShellPath) Settling() string
- func (s *ShellPath) Start()
- func (s *ShellPath) Telling(tell func(profile, text string))
- type State
Constants ¶
const ( GroupIcebath = "icebath" GroupShells = "Shells" GroupProfiles = "Commands of profiles" GroupCompletions = "Completions" GroupPrograms = "Programs" GroupComputer = "This computer" )
Parts of the report, in the order it lists them
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
Group, Title string
// What it is of, such as a file or a folder, as a person reads it
Value string
State State
// More about it and what to do about it, whole sentences; Fix empty when nothing is to be done
Detail, Fix string
// Setting up puts it right
Repairs bool
// Name of the row, the same from one look to the next, which a finding of the doctor is keyed by
Key string
}
One thing the report says
type Report ¶
type Report struct {
Items []Item
// What the person does for the shell they are in, empty when it finds this icebath already
Running string
// What the first start after an install does now, empty when nothing
Settling string
}
How the shells of this computer find icebath and the commands of the profiles
func (Report) Repairable ¶
Whether any row is wrong in a way setting up puts right
type ShellPath ¶
type ShellPath struct {
// contains filtered or unexported fields
}
The shells of the person as icebath sets them up, and what the first start after an install finishes
func (*ShellPath) Close ¶
Stops what the first start does, waiting for it; what it did not finish is owed again at the next start
func (*ShellPath) Folders ¶
Folders icebath puts on the person's PATH that are there: the folder of the command of this install, that of the profiles' commands, and those the lines icebath added to startup files name
func (*ShellPath) Report ¶
How the shells of this computer find icebath, the commands of the profiles and the completions, read without changing anything
func (*ShellPath) SetUp ¶
Puts right what the report finds wrong: the command icebath of the folder of commands leading to this program (on Windows the program's folder first on the user PATH), the marked line in the startup files of every family of shells the person uses that do not put that folder on PATH, the folder of the profiles' commands on PATH when there are some, the lines icebath added for a folder that is gone and the commands of profiles that are gone taken out, the completions written, and what it added recorded in the stamp of the install so an uninstall removes it. What it did, line by line, and the words for the shell the person is in; an error when there is no program to set up
func (*ShellPath) Settling ¶
What the first start after an install does now, empty when it does nothing
func (*ShellPath) Start ¶
func (s *ShellPath) Start()
Starts what the first start after an install owes in the background, once the settings are read: the completions of the person's shells, then the programs the features use, as alpha's installer got them ready, once On battery lets downloads run. A container image carries its own and is owed neither; a source checkout and a build given out by a developer get their programs as features first need them