git-vogue-0.3.0.2: A framework for pre-commit checks.

Safe HaskellNone
LanguageHaskell2010

Git.Vogue.Types

Synopsis

Documentation

data VCSType Source #

Constructors

Git 
Null 

data VogueCommand Source #

Commands, with parameters, to be executed.

Constructors

CmdInit

Add git-vogue support to a git repository.

CmdVerify

Verify that support is installed and plugins happen.

CmdPlugins

List the plugins that git-vogue knows about.

CmdDisable PluginName

Disable a plugin

CmdEnable PluginName

Enable a plugin

CmdRunCheck

Run check plugins on files in a git repository.

CmdRunFix

Run fix plugins on files in a git repository.

data Check Source #

Phantom type for Statuses related to checking

data Fix Source #

Phantom type for Statuses related to fixing

data Result Source #

Result of running a Plugin

data Plugin m Source #

A plugin that can be told to check or fix a list of files

Constructors

Plugin 

Instances

Eq (Plugin m) Source # 

Methods

(==) :: Plugin m -> Plugin m -> Bool #

(/=) :: Plugin m -> Plugin m -> Bool #

Ord (Plugin m) Source # 

Methods

compare :: Plugin m -> Plugin m -> Ordering #

(<) :: Plugin m -> Plugin m -> Bool #

(<=) :: Plugin m -> Plugin m -> Bool #

(>) :: Plugin m -> Plugin m -> Bool #

(>=) :: Plugin m -> Plugin m -> Bool #

max :: Plugin m -> Plugin m -> Plugin m #

min :: Plugin m -> Plugin m -> Plugin m #

Show (Plugin m) Source # 

Methods

showsPrec :: Int -> Plugin m -> ShowS #

show :: Plugin m -> String #

showList :: [Plugin m] -> ShowS #

data SearchMode Source #

We want the flexibility of just checking changed files, or maybe checking all of them.

data PluginDiscoverer m Source #

A thing that can find plugins, for example we might search through the libexec directory for executables.

Constructors

PluginDiscoverer 

Fields

data VCS m Source #

A VCS backend, such as git.

Constructors

VCS 

Fields