rc

package
v0.0.0-...-ece29da Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rc provides a bit of logic for .*.rc files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rc

type Rc struct {
	// contains filtered or unexported fields
}

Rc essential structure

func New

func New() *Rc

New returns new Rc struct

func (*Rc) Add

func (rc *Rc) Add() error

Add bash configs on Unix system .bashrc works when you open new bash session (open terminal) .bash_profile is executed when you login

So in order for our env variables to be consistently exposed we need to modify both of them

func (*Rc) Exists

func (rc *Rc) Exists() bool

Exists checks if rc data already present

func (*Rc) Find

func (rc *Rc) Find() string

Find finds proper rc file

func (*Rc) Remove

func (rc *Rc) Remove() error

Remove bash configs on Unix system

Jump to

Keyboard shortcuts

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