ogma-core-1.15.0: Ogma: Helper tool to interoperate between Copilot and other languages.
Safe HaskellNone
LanguageHaskell2010

Command.Search

Description

Find elements in a project that meet a search query.

Synopsis

Documentation

command Source #

Arguments

:: CommandOptions

Customization options

-> IO (Maybe CommandSearchResults, Result ErrorCode) 

Find elements in a project that meet a search query.

data CommandOptions Source #

Options used to customize the interpretation of input specifications.

data SearchFile Source #

Information about one file in the command options.

data CommandSearchResults Source #

Lists of search results.

Instances

Instances details
ToJSON CommandSearchResults Source # 
Instance details

Defined in Command.Search

Generic CommandSearchResults Source # 
Instance details

Defined in Command.Search

Associated Types

type Rep CommandSearchResults 
Instance details

Defined in Command.Search

type Rep CommandSearchResults = D1 ('MetaData "CommandSearchResults" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSearchResults" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchResultRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RequirementInfo]) :*: S1 ('MetaSel ('Just "searchResultDiagrams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DiagramInfo])))
Show CommandSearchResults Source # 
Instance details

Defined in Command.Search

type Rep CommandSearchResults Source # 
Instance details

Defined in Command.Search

type Rep CommandSearchResults = D1 ('MetaData "CommandSearchResults" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSearchResults" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchResultRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RequirementInfo]) :*: S1 ('MetaSel ('Just "searchResultDiagrams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DiagramInfo])))

data RequirementInfo Source #

Information about a requirement that matches the search query.

Instances

Instances details
ToJSON RequirementInfo Source # 
Instance details

Defined in Command.Search

Generic RequirementInfo Source # 
Instance details

Defined in Command.Search

Associated Types

type Rep RequirementInfo 
Instance details

Defined in Command.Search

type Rep RequirementInfo = D1 ('MetaData "RequirementInfo" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "RequirementInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "requirementInfoLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "requirementInfoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "requirementInfoDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))))
Show RequirementInfo Source # 
Instance details

Defined in Command.Search

type Rep RequirementInfo Source # 
Instance details

Defined in Command.Search

type Rep RequirementInfo = D1 ('MetaData "RequirementInfo" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "RequirementInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "requirementInfoLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "requirementInfoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "requirementInfoDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))))

data DiagramInfo Source #

Information about a diagram that matches the search query.

Constructors

DiagramInfo 

Instances

Instances details
ToJSON DiagramInfo Source # 
Instance details

Defined in Command.Search

Generic DiagramInfo Source # 
Instance details

Defined in Command.Search

Associated Types

type Rep DiagramInfo 
Instance details

Defined in Command.Search

type Rep DiagramInfo = D1 ('MetaData "DiagramInfo" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "DiagramInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "diagramInfoLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))
Show DiagramInfo Source # 
Instance details

Defined in Command.Search

type Rep DiagramInfo Source # 
Instance details

Defined in Command.Search

type Rep DiagramInfo = D1 ('MetaData "DiagramInfo" "Command.Search" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "DiagramInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "diagramInfoLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))

type ErrorCode = Int Source #

Encoding of reasons why the command can fail.