Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
supersven committed Feb 5, 2025
1 parent b498280 commit c4cf6d5
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions app/upload-bom.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,28 @@ data CliOptions = CliOptions
cliParser :: Maybe String -> Parser CliOptions
cliParser mbApiKey =
CliOptions
<$> ( strOption
( long "project-name"
<> short 'p'
<> metavar "PROJECT_NAME"
<> value "wire-server-ci"
)
)
<*> ( strOption
( long "project-version"
<> short 'v'
<> metavar "PROJECT_VERSION"
)
)
<*> ( switch
( long "auto-create"
<> short 'c'
)
)
<$> strOption
( long "project-name"
<> short 'p'
<> metavar "PROJECT_NAME"
<> value "wire-server-ci"
)
<*> strOption
( long "project-version"
<> short 'v'
<> metavar "PROJECT_VERSION"
)
<*> switch
( long "auto-create"
<> short 'c'
)
<*> apiKeyOption
<*> ( strOption
( long "bom-file"
<> short 'f'
<> metavar "BOM_FILENAME"
<> value "sbom.json"
)
)
<*> strOption
( long "bom-file"
<> short 'f'
<> metavar "BOM_FILENAME"
<> value "sbom.json"
)
where
apiKeyOption :: Parser String
apiKeyOption = case mbApiKey of
Expand Down

0 comments on commit c4cf6d5

Please sign in to comment.