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 spice

  • treasure (str) – Name of the variable

  • location (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 spice

  • treasure (str) – Name of the variable

  • value (str) – Value of the variable

  • location (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 spice

  • value (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 spice

  • value (str) – Value of the variable

Returns

Void

Return type

None