View Source Workspace.Export (Workspace v0.1.2)

Helper utilities for exporting the workspace to various formats.

Summary

Functions

Returns a json representation of the given run results.

Returns a json representation of the key workspace properties.

Functions

Link to this function

run_results_to_json(results)

View Source
@spec run_results_to_json(results :: [map()]) :: String.t()

Returns a json representation of the given run results.

Link to this function

to_json(workspace, opts \\ [])

View Source
@spec to_json(workspace :: Workspace.State.t(), opts :: keyword()) :: String.t()

Returns a json representation of the key workspace properties.

By default only the workspace_path and the projects are included.

Options

  • :sort - if set to true projects will be sorted alphabetically. Defaults to false.
  • :relative - if paths will be relative or absolute. If set to true then workspace_path will be set to ".". Defaults to false.

Notice that skipped projects are not included.