tags ¤
Section module.
This module contains the Section class.
Classes:
- AuthorTag –
A tag representing an author.
- BriefTag –
A tag representing a summary.
- BugTag –
A tag representing a bug note.
- CaveatTag –
A tag representing caveats.
- CopyrightTag –
A tag representing copyright information.
- DateTag –
A tag representing a date.
- DescTag –
A tag representing a description.
- EnvTag –
A tag representing an environment variable used by the script.
- ErrorTag –
A tag representing a known error.
- ExampleTag –
A tag representing a code/shell example.
- ExitTag –
A tag representing an exit code.
- FileTag –
A tag representing a file used by a script.
- FunctionTag –
A tag representing a shell function.
- HistoryTag –
A tag representing a script's history.
- LicenseTag –
A tag representing a license.
- NameDescTag –
A tag holding a name and a description.
- NoteTag –
A tag representing a note.
- OptionTag –
A tag representing a command-line option.
- SeealsoTag –
A tag representing "See Also" information.
- StderrTag –
A tag representing the standard error of a script/function.
- StdinTag –
A tag representing the standard input of a script/function.
- StdoutTag –
A tag representing the standard output of a script/function.
- Tag –
Base class for tags.
- TextTag –
A simple tag holding text only.
- UsageTag –
A tag representing the command-line usage of a script.
- VersionTag –
A tag representing a version.
AuthorTag dataclass
¤
BriefTag dataclass
¤
BugTag dataclass
¤
CaveatTag dataclass
¤
CopyrightTag dataclass
¤
DateTag dataclass
¤
DescTag dataclass
¤
EnvTag dataclass
¤
Bases: NameDescTag
A tag representing an environment variable used by the script.
Attributes:
- description (
str
) –The tag description.
- name (
str
) –The tag name.
ErrorTag dataclass
¤
ExitTag dataclass
¤
FileTag dataclass
¤
Bases: NameDescTag
A tag representing a file used by a script.
Attributes:
- description (
str
) –The tag description.
- name (
str
) –The tag name.
FunctionTag dataclass
¤
Bases: Tag
A tag representing a shell function.
Attributes:
- arguments (
Sequence[str]
) –The function's arguments.
- brief (
str
) –The function's summary.
- description (
str
) –The function's description.
- preconditions (
Sequence[str]
) –The function's preconditions.
- prototype (
str
) –The function's prototype.
- return_codes (
Sequence[str]
) –The function's return codes.
- seealso (
Sequence[str]
) –The function's "see also" information.
- stderr (
Sequence[str]
) –The function's standard error.
- stdin (
Sequence[str]
) –The function's standard input.
- stdout (
Sequence[str]
) –The function's standard output.
HistoryTag dataclass
¤
LicenseTag dataclass
¤
NameDescTag dataclass
¤
NoteTag dataclass
¤
OptionTag dataclass
¤
Bases: Tag
A tag representing a command-line option.
Attributes:
- default (
str
) –The option default value.
- description (
str
) –The option description.
- group (
str
) –The option group.
- long (
str
) –The option long flag.
- positional (
str
) –The option positional arguments.
- short (
str
) –The option short flag.
- signature (
str
) –The signature of the option.
SeealsoTag dataclass
¤
StderrTag dataclass
¤
StdinTag dataclass
¤
StdoutTag dataclass
¤
Tag ¤
Base class for tags.
Methods:
- from_lines –
Parse a sequence of lines into a tag instance.
from_lines classmethod
¤
Parse a sequence of lines into a tag instance.
Parameters:
Returns:
-
Tag
–A tag instance.
Source code in src/shellman/tags.py
20 21 22 23 24 25 26 27 28 29 30 |
|