Documentation ¶
Index ¶
- type Project
- func (project *Project) AutoDetectLanguage() string
- func (project *Project) Branch() string
- func (project *Project) CtagsFile() string
- func (project *Project) CtagsFileAge() time.Time
- func (project *Project) CtagsFileSize() uint64
- func (project *Project) CtagsOptions() []string
- func (project *Project) Destroy() error
- func (project *Project) DisableHook(hook string) error
- func (project *Project) EnableHook(hook string) error
- func (project *Project) IsConfigured() bool
- func (project *Project) Language() string
- func (project *Project) ListHooks() []string
- func (project *Project) Location() string
- func (project *Project) Name() string
- func (project *Project) RefreshCtags() error
- func (project *Project) SetLanguage(language string) error
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 ¶
LoadProject instantiates a new instance of Project for a given directory
func (*Project) AutoDetectLanguage ¶
AutoDetectLanguage guesses the language of a git repository based on some standard files and defaults to plain
func (*Project) CtagsFile ¶ added in v0.9.8
CtagsFile returns the path to the ctags file of the current ide project
func (*Project) CtagsFileAge ¶ added in v0.9.8
CtagsFileAge returns the time the ctags file was last modified
func (*Project) CtagsFileSize ¶ added in v0.9.8
CtagsFileSize returns the size of the ctags file in bytes
func (*Project) CtagsOptions ¶ added in v0.9.12
CtagsOptions returns the language of the ide project as stored in .git/config file
func (*Project) DisableHook ¶
DisableHook disables a git repository hook
func (*Project) EnableHook ¶
EnableHook enables a git repository hook
func (*Project) IsConfigured ¶
IsConfigured returns true if the current git repository is setup as an ide project
func (*Project) Language ¶
Language returns the language of the ide project as stored in .git/config file
func (*Project) ListHooks ¶
ListHooks returns an array of hooks which are enabled for the ide project
func (*Project) Name ¶
Name returns the name of the ide project, extracted from the parent directory name
func (*Project) RefreshCtags ¶
RefreshCtags generates a new ctags file for the current project
func (*Project) SetLanguage ¶
SetLanguage stores the given language in the .git/config file of the ide project