Skip to content

Helpers ​

Functions of the tools module at v0.3.2. Each returns what a command runs in; import it with import * as tools from "tools".

home ​

A path under the home directory of the user running Lask.

lask
home(
  path: String
): String

Lask starts docker without a shell, so ~ in a mount would reach the daemon as a directory named ~; build the path with this.

Parameters

  • path Relative to the home directory, e.g. ".aws".

Returns String: The absolute host path.

bash
lask eval home .aws

lib/common.lask

Released under the MIT License.