File: .lake/packages/lean4/src/lean/lake/Lake/CLI/Main.lean

full_name: Lake.LakeOptions.rootDir
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.FilePath

full_name: Lake.LakeOptions.elanInstall?
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Option Lake.ElanInstall

full_name: Lake.LakeOptions.configOpts
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.NameMap String

full_name: Lake.LakeOptions
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Type

full_name: Lake.LakeOptions.failLv
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.LogLevel

full_name: Lake.LakeOptions.subArgs
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: List String

full_name: Lake.LakeOptions.wantsHelp
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.noBuild
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.configFile
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.FilePath

full_name: Lake.LakeOptions.leanInstall?
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Option Lake.LeanInstall

full_name: Lake.LakeOptions.trustHash
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.reconfigure
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.verbosity
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.Verbosity

full_name: Lake.LakeOptions.oldMode
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.ansiMode
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Lake.AnsiMode

full_name: Lake.LakeOptions.lakeInstall?
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Option Lake.LakeInstall

full_name: Lake.LakeOptions.updateDeps
code: structure LakeOptions where
  rootDir : FilePath := "."
  configFile : FilePath := defaultConfigFile
  elanInstall? : Option ElanInstall := none
  leanInstall? : Option LeanInstall := none
  lakeInstall? : Option LakeInstall := none
  configOpts : NameMap String := {}
  subArgs : List String := []
  wantsHelp : Bool := false
  verbosity : Verbosity := .normal
  updateDeps : Bool := false
  reconfigure : Bool := false
  oldMode : Bool := false
  trustHash : Bool := true
  noBuild : Bool := false
  failLv : LogLevel := .error
  ansiMode : AnsiMode := .auto
goal: Bool

full_name: Lake.LakeOptions.getLeanInstall
code: /-- Get the Lean installation. Error if missing. -/
def LakeOptions.getLeanInstall (opts : LakeOptions) : Except CliError LeanInstall 
goal: Except Lake.CliError Lake.LeanInstall

full_name: Lake.LakeOptions.getLakeInstall
code: /-- Get the Lake installation. Error if missing. -/
def LakeOptions.getLakeInstall (opts : LakeOptions) : Except CliError LakeInstall 
goal: Except Lake.CliError Lake.LakeInstall

full_name: Lake.LakeOptions.getInstall
code: /-- Get the Lean and Lake installation. Error if either is missing. -/
def LakeOptions.getInstall (opts : LakeOptions) : Except CliError (LeanInstall × LakeInstall) 
goal: Except Lake.CliError (Lake.LeanInstall × Lake.LakeInstall)

full_name: Lake.LakeOptions.computeEnv
code: /-- Compute the Lake environment based on `opts`. Error if an install is missing. -/
def LakeOptions.computeEnv (opts : LakeOptions) : EIO CliError Lake.Env 
goal: EIO Lake.CliError Lake.Env

full_name: Lake.LakeOptions.mkLoadConfig
code: /-- Make a `LoadConfig` from a `LakeOptions`. -/
def LakeOptions.mkLoadConfig (opts : LakeOptions) : EIO CliError LoadConfig 
goal: EIO Lake.CliError Lake.LoadConfig

full_name: Lake.LakeOptions.mkBuildConfig
code: /-- Make a `BuildConfig` from a `LakeOptions`. -/
def LakeOptions.mkBuildConfig (opts : LakeOptions) (out := OutStream.stderr) : BuildConfig 
goal: Lake.BuildConfig

full_name: Lake.CliMainM
code: abbrev CliMainM 
goal: Type

full_name: Lake.CliStateM
code: abbrev CliStateM 
goal: Type

full_name: Lake.CliM
code: abbrev CliM 
goal: Type

full_name: Lake.CliM.run
code: def CliM.run (self : CliM α) (args : List String) : BaseIO ExitCode 
goal: BaseIO Lake.ExitCode

full_name: Lake.CliStateM.runLogIO
code: @[inline] def CliStateM.runLogIO (x : LogIO α) : CliStateM α 
goal: Lake.CliStateM α

full_name: Lake.instMonadLiftLogIOCliStateM
code: instance (priority := low) : MonadLift LogIO CliStateM 
goal: MonadLift Lake.LogIO Lake.CliStateM

full_name: Lake.takeArg
code: def takeArg (arg : String) : CliM String 
goal: Lake.CliM String

full_name: Lake.takeOptArg
code: def takeOptArg (opt arg : String) : CliM String 
goal: Lake.CliM String

full_name: Lake.noArgsRem
code: /--
Verify that there are no CLI arguments remaining
before running the given action.
-/
def noArgsRem (act : CliStateM α) : CliM α 
goal: Lake.CliM α

full_name: Lake.getWantsHelp
code: def getWantsHelp : CliStateM Bool 
goal: Lake.CliStateM Bool

full_name: Lake.setLean
code: def setLean (lean : String) : CliStateM PUnit 
goal: Lake.CliStateM PUnit

full_name: Lake.setConfigOpt
code: def setConfigOpt (kvPair : String) : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lakeShortOption
code: def lakeShortOption : (opt : Char) → CliM PUnit

goal: Lake.CliM PUnit

full_name: Lake.lakeLongOption
code: def lakeLongOption : (opt : String) → CliM PUnit

goal: Lake.CliM PUnit

full_name: Lake.lakeOption
code: def lakeOption 
goal: Lake.CliM PUnit

full_name: Lake.verifyLeanVersion
code: /-- Verify the Lean version Lake was built with matches that of the give Lean installation. -/
def verifyLeanVersion (leanInstall : LeanInstall) : Except CliError PUnit 
goal: Except Lake.CliError PUnit

full_name: Lake.verifyInstall
code: /-- Output the detected installs and verify the Lean version. -/
def verifyInstall (opts : LakeOptions) : ExceptT CliError MainM PUnit 
goal: ExceptT Lake.CliError Lake.MainM PUnit

full_name: Lake.parseScriptSpec
code: def parseScriptSpec (ws : Workspace) (spec : String) : Except CliError Script 
goal: Except Lake.CliError Lake.Script

full_name: Lake.parseTemplateSpec
code: def parseTemplateSpec (spec : String) : Except CliError InitTemplate 
goal: Except Lake.CliError Lake.InitTemplate

full_name: Lake.parseLangSpec
code: def parseLangSpec (spec : String) : Except CliError ConfigLang 
goal: Except Lake.CliError Lake.ConfigLang

full_name: Lake.parseTemplateLangSpec
code: def parseTemplateLangSpec (spec : String) : Except CliError (InitTemplate × ConfigLang) 
goal: Except Lake.CliError (Lake.InitTemplate × Lake.ConfigLang)

full_name: Lake.lake.script.list
code: protected def list : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.script.run
code: protected nonrec def run : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.script.doc
code: protected def doc : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.script.help
code: protected def help : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.scriptCli
code: def scriptCli : (cmd : String) → CliM PUnit

goal: Lake.CliM PUnit

full_name: Lake.lake.new
code: protected def new : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.init
code: protected def init : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.build
code: protected def build : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.resolveDeps
code: protected def resolveDeps : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.update
code: protected def update : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.pack
code: protected def pack : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.unpack
code: protected def unpack : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.upload
code: protected def upload : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.setupFile
code: protected def setupFile : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.test
code: protected def test : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.checkTest
code: protected def checkTest : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.lint
code: protected def lint : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.checkLint
code: protected def checkLint : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.clean
code: protected def clean : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.script
code: protected def script : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.serve
code: protected def serve : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.env
code: protected def env : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.exe
code: protected def exe : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.lean
code: protected def lean : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.translateConfig
code: protected def translateConfig : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.selfCheck
code: protected def selfCheck : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lake.help
code: protected def help : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.lakeCli
code: def lakeCli : (cmd : String) → CliM PUnit

goal: Lake.CliM PUnit

full_name: Lake.lake
code: def lake : CliM PUnit 
goal: Lake.CliM PUnit

full_name: Lake.cli
code: def cli (args : List String) : BaseIO ExitCode 
goal: BaseIO Lake.ExitCode