config

package
v1.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides facilities for working with the local configuration directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRoot added in v1.17.0

func SetRoot(root string)

SetRoot overrides the package-level config root configuration.

Types

type File

type File string

File provides convenience methods for interacting with *os.File.

var (
	Session File = "session"
	URL     File = "url"
)

Coder CLI configuration files.

func (File) Delete

func (f File) Delete() error

Delete deletes the file.

func (File) Read

func (f File) Read() (string, error)

Read reads the file to a string.

func (File) Write

func (f File) Write(s string) error

Write writes the string to the file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL