crash.software
Projects
Pull Requests
Issues
Builds
reverse_ssh
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
reverse_ssh
Files
🤬
Sign In
140f3a35
ROOT
/
internal
/
terminal
/
utils.go
Search
History
348 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ErrFlagNotSet
Node
Value
()
:
string
Start
()
:
int
End
()
:
int
Type
()
:
string
baseNode
start
:
int
end
:
int
value
:
string
Argument
baseNode
Type
()
:
string
Cmd
baseNode
Type
()
:
string
Flag
baseNode
Args
:
[]Argument
long
:
bool
Type
()
:
string
ParsedLine
FlagsOrdered
:
[]Flag
Flags
:
map[string]Flag
Arguments
:
[]Argument
Focus
:
Node
Section
:
*Flag
Command
:
*Cmd
RawLine
:
string
parseFlag
(line string, startPos int)
:
(f Flag, endPos int)
parseSingleArg
(line string, startPos int)
:
(arg Argument, endPos int)
parseArgs
(line string, startPos int)
:
(args []Argument, endPos int)
ParseLineValidFlags
(line string, cursorPosition int, validFlags map[string]bool)
:
(pl ParsedLine, err error)
ParseLine
(line string, cursorPosition int)
:
(pl ParsedLine)
MakeHelpText
(lines ...string)
:
(s string)
*baseNode
Value
()
:
string
Start
()
:
int
End
()
:
int
*Flag
ArgValues
()
:
(out []string)
*ParsedLine
ArgumentsAsStrings
()
:
(out []string)
IsSet
(flag string)
:
bool
ExpectArgs
(flag string, needs int)
:
([]Argument, error)
GetArgs
(flag string)
:
([]Argument, error)
GetArgsString
(flag string)
:
([]string, error)
GetArg
(flag string)
:
(Argument, error)
GetArgString
(flag string)
:
(string, error)
All occurrences
Please wait...
Page is in error, reload to recover