changefile

package
v0.0.0-...-93b3838 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package changefile provides functions for creating and modifying Changefiles within a project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(change *Change, projectRoot string) (string, error)

Create writes change data to a new Changefile at <projectRoot>/.pin/<timestamp>.chg. Returns the completed filepath to the new Changefile.

func CreatePinDirectory

func CreatePinDirectory(projectRoot string) (string, error)

CreatePinDirectory will create the directory <projectRoot>/.pin if it does not already exist. projectRoot can be an absolute or a relative path to the parent directory of .pin. Returns the path to the Pin directory.

Types

type Change

type Change struct {
	Summary string `toml:"summary" json:"summary" yaml:"summary"`
}

Change represents the data in a changefile.

Jump to

Keyboard shortcuts

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