charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Runner.Command

Contents

Description

Provides the Command type.

Synopsis

Types

data Command s Source #

Action to run.

Constructors

Delete (UniqueSeqNE (PathI TrashEntryOriginalPath))

Deletes a path.

PermDelete Bool (UniqueSeqNE (PathI TrashEntryFileName))

Permanently deletes a path from the trash.

Empty Bool

Empties the trash.

Restore (UniqueSeqNE (PathI TrashEntryFileName))

Restores a path.

List (ListCmd s)

List all trash contents.

Metadata

Prints trash metadata.

Convert Backend

Converts backend files.

Merge (PathI TrashHome)

Merges trash home directories.

Instances

Instances details
Show (Command 'Phase1) Source # 
Instance details

Defined in Charon.Runner.Command

Show (Command 'Phase2) Source # 
Instance details

Defined in Charon.Runner.Command

AdvancePhase (Command 'Phase1) Source # 
Instance details

Defined in Charon.Runner.Command

Associated Types

type NextPhase (Command 'Phase1) Source #

Eq (Command 'Phase1) Source # 
Instance details

Defined in Charon.Runner.Command

Eq (Command 'Phase2) Source # 
Instance details

Defined in Charon.Runner.Command

type NextPhase (Command 'Phase1) Source # 
Instance details

Defined in Charon.Runner.Command

Optics

_Empty :: forall s. Prism' (Command s) Bool Source #

_List :: forall s s. Prism (Command s) (Command s) (ListCmd s) (ListCmd s) Source #

_Metadata :: forall s. Prism' (Command s) () Source #