hledger-web-1.34: Web user interface for the hledger accounting system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hledger.Web.WebOptions

Synopsis

Documentation

progname :: ProgramName Source #

The name of this program's executable.

prognameandversion :: String Source #

Generate the version string for this program. The template haskell call is here rather than in Hledger.Cli.Version to avoid wasteful recompilation.

data WebOpts Source #

Instances

Instances details
Show WebOpts Source # 
Instance details

Defined in Hledger.Web.WebOptions

Default WebOpts Source # 
Instance details

Defined in Hledger.Web.WebOptions

Methods

def :: WebOpts #

data Permission Source #

Constructors

ViewPermission

allow viewing things (read only)

AddPermission

allow adding transactions, or more generally allow appending text to input files

EditPermission

allow editing input files

showPermission :: Permission -> String Source #

Convert to the lower case permission name.

data AccessLevel Source #

For the --allow option: how much access to allow to hledger-web users ?

Constructors

ViewAccess

view permission only

AddAccess

view and add permissions

EditAccess

view, add and edit permissions

SandstormAccess

the permissions specified by the X-Sandstorm-Permissions HTTP request header

accessLevelToPermissions :: AccessLevel -> [Permission] Source #

Convert an --allow access level to the permissions used internally. SandstormAccess generates an empty list, to be filled in later.