rclone: github.com/ncw/rclone/lib/env Index | Files

package env

import "github.com/ncw/rclone/lib/env"

Package env contains functions for dealing with environment variables

Index

Package Files

env.go

Constants

const ShellExpandHelp = "\n\nLeading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.\n"

ShellExpandHelp describes what ShellExpand does for inclusion into help

func ShellExpand Uses

func ShellExpand(s string) string

ShellExpand replaces a leading "~" with the home directory" and expands all environment variables afterwards.

Package env imports 2 packages (graph). Updated 2020-06-04. Refresh now. Tools for package owners.