Chest¶
- narrenschiff.cli.chest.chest(ctx)¶
Load keys and spices.
- Returns
Void
- Return type
None
- narrenschiff.cli.chest.loot(keychain, treasure, value, location)¶
Display value from the chest file.
- Parameters
keychain (
narrenschiff.chest.Keychain
) – Object containing key and spicetreasure (
str
) – Name of the variablelocation (
str
) – Path to the course directory
- Returns
Void
- Return type
None
- narrenschiff.cli.chest.stash(keychain, treasure, value, location)¶
Dynamically update chest file. Override old value if exists.
- Parameters
keychain (
narrenschiff.chest.Keychain
) – Object containing key and spicetreasure (
str
) – Name of the variablevalue (
str
) – Value of the variablelocation (
str
) – Path to the course directory
- Returns
Void
- Return type
None
- narrenschiff.cli.chest.lock(keychain, value)¶
Encrypt string and print it to STDOUT.
- Parameters
keychain (
narrenschiff.chest.Keychain
) – Object containing key and spicevalue (
str
) – Value of the variable
- Returns
Void
- Return type
None
- narrenschiff.cli.chest.unlock(keychain, value)¶
Decrypt string and print it to STDOUT.
- Parameters
keychain (
narrenschiff.chest.Keychain
) – Object containing key and spicevalue (
str
) – Value of the variable
- Returns
Void
- Return type
None