Skip to content

Add ~ as user home support for import path #1115

@linux-china

Description

@linux-china

Is your feature request related to a problem? Please describe.

import * from "~/.amber/helpers/git.ab"

Describe the solution you'd like

Load amber module from user home.

Describe alternatives you've considered

The following code is some complicated.

import { env_var_get } from "std/env"
const home = trust env_var_get("HOME")
import { history } from "{home}/.amber/helper/git.ab"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions