Skip to main content

Module profile

Module profile 

Source
Expand description

The connection profiles and the config.yml file (doc 19b, section 18.11.2).

Structs§

ConfigFile
The whole file: the default profile and the profiles, in the order they were created.
Profile
A profile: only the fields the person set.

Enums§

Os

Constants§

DEFAULT_URL
FIELDS
The fields of a profile, in the order they are written and shown.
OUTPUTS

Functions§

config_path
The path of config.yml: TABA_CLI_CONFIG, or the user’s configuration folder on the system.
load
Reads the file; if it does not exist, it is an empty file. Unreadable or invalid: the error gives the path.
save
Rewrites the whole file atomically: writes a temporary file next to it and renames it over the original. On Unix the file is created with 0600 permission.
validate_field
Checks a field’s value without calling the server or touching files.
validate_name
A profile’s name: ASCII letters, digits, - and _, from 1 to 64 characters.