| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Napkin.Cli.Auth.CmdRunner
Synopsis
- mergeYamlSpecWithCli :: (MonadIO m, MonadError NapkinError m) => SpecFile -> SharedCommandOptions -> (forall b. Typeable b => ToDbBackend b => b -> YamlSpec b -> m ()) -> m ()
- onlyBigQuery :: forall b. Typeable b => (YamlSpec BigQuery -> CLICommand) -> b -> YamlSpec b -> CLICommand
- work :: AuthCommandOptions -> LogOptions -> CLICommand
- doWork :: FilePath -> SharedCommandOptions -> (OAuth2Context -> NapkinOAuth2Request) -> LogOptions -> CLICommand
- mkSpecFile :: MonadIO m => FilePath -> m SpecFile
Documentation
Arguments
| :: (MonadIO m, MonadError NapkinError m) | |
| => SpecFile | |
| -> SharedCommandOptions | shared cli options |
| -> (forall b. Typeable b => ToDbBackend b => b -> YamlSpec b -> m ()) | |
| -> m () |
onlyBigQuery :: forall b. Typeable b => (YamlSpec BigQuery -> CLICommand) -> b -> YamlSpec b -> CLICommand #
work :: AuthCommandOptions -> LogOptions -> CLICommand #
Creates the Napkin.Auth.Types.NapkinOAuth2Request and makes a request to the Napkin.Auth.GoogleFlow
doWork :: FilePath -> SharedCommandOptions -> (OAuth2Context -> NapkinOAuth2Request) -> LogOptions -> CLICommand #
mkSpecFile :: MonadIO m => FilePath -> m SpecFile #