ide

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

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

Project represents an ide project

func LoadProject

func LoadProject(location string) (*Project, error)

LoadProject instantiates a new instance of Project for a given directory

func (*Project) AutoDetectLanguage

func (project *Project) AutoDetectLanguage() string

AutoDetectLanguage guesses the language of a git repository based on some standard files and defaults to plain

func (*Project) Branch

func (project *Project) Branch() string

Branch returns the currently checked out branch of the ide project

func (*Project) CtagsFile added in v0.9.8

func (project *Project) CtagsFile() string

CtagsFile returns the path to the ctags file of the current ide project

func (*Project) CtagsFileAge added in v0.9.8

func (project *Project) CtagsFileAge() time.Time

CtagsFileAge returns the time the ctags file was last modified

func (*Project) CtagsFileSize added in v0.9.8

func (project *Project) CtagsFileSize() uint64

CtagsFileSize returns the size of the ctags file in bytes

func (*Project) CtagsOptions added in v0.9.12

func (project *Project) CtagsOptions() []string

CtagsOptions returns the language of the ide project as stored in .git/config file

func (*Project) Destroy

func (project *Project) Destroy() error

Destroy removes any trace of ide configuration from .git/config file

func (*Project) DisableHook

func (project *Project) DisableHook(hook string) error

DisableHook disables a git repository hook

func (*Project) EnableHook

func (project *Project) EnableHook(hook string) error

EnableHook enables a git repository hook

func (*Project) IsConfigured

func (project *Project) IsConfigured() bool

IsConfigured returns true if the current git repository is setup as an ide project

func (*Project) Language

func (project *Project) Language() string

Language returns the language of the ide project as stored in .git/config file

func (*Project) ListHooks

func (project *Project) ListHooks() []string

ListHooks returns an array of hooks which are enabled for the ide project

func (*Project) Location

func (project *Project) Location() string

Location returns the absolute file path of the ide project

func (*Project) Name

func (project *Project) Name() string

Name returns the name of the ide project, extracted from the parent directory name

func (*Project) RefreshCtags

func (project *Project) RefreshCtags() error

RefreshCtags generates a new ctags file for the current project

func (*Project) SetLanguage

func (project *Project) SetLanguage(language string) error

SetLanguage stores the given language in the .git/config file of the ide project

Jump to

Keyboard shortcuts

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