user

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(path string) (*Store, error)

NewStore ...

func (*Store) AddUser

func (s *Store) AddUser(user User) error

func (*Store) Close

func (s *Store) Close() error

Close saves local changes to file

func (*Store) GetUsers

func (s *Store) GetUsers() []User

func (*Store) RemoveUser

func (s *Store) RemoveUser(user User)

type User

type User struct {
	Username    string `json:"username" cmd:"user.name"`
	Email       string `json:"email" cmd:"user.email"`
	SigningKey  string `json:"signingKey" cmd:"user.signingkey"`
	SignCommits *bool  `json:"gpgSign" cmd:"commit.gpgsign"`
	GpgFormat   string `json:"gpgFormat" cmd:"gpg.format"`
}

User represents Git configuration

func (User) Description

func (u User) Description() string

Description ...

func (User) FilterValue

func (u User) FilterValue() string

FilterValue satisfies list.Item interface

func (User) Title

func (u User) Title() string

Title ...

Jump to

Keyboard shortcuts

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