Module holochain_cli_sandbox::save

source ·
Expand description

§Manage persistence of sandboxes

This module gives basic helpers to save / load your sandboxes to / from a .hc file. This is very much WIP and subject to change.

Functions§

  • Remove sandboxes by their index in the file. You can get the index by calling load. If no sandboxes are passed in then all are deleted. If all sandboxes are deleted the .hc file will be removed.
  • Same as load_ports but only returns ports for paths passed in.
  • Print out the sandboxes contained in the .hc file.
  • Load sandbox paths from the .hc file.
  • For each registered setup, if it has a lockfile, return the port of the running conductor, otherwise return None. The resulting Vec has the same number of elements as lines in the .hc file.
  • Lock this setup as running live and advertise the port.
  • Remove all lockfiles, releasing all locked ports.
  • Save all sandboxes to the .hc file in the hc_dir directory.