-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6515 from commercialhaskell/fix5290
Fix #5290 Add `--[no-]save-hackage-creds` to `stack upload`
- Loading branch information
Showing
11 changed files
with
127 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{-# LANGUAGE NoImplicitPrelude #-} | ||
{-# LANGUAGE NoFieldSelectors #-} | ||
|
||
-- | Types for command line options for the @stack upload@ command. | ||
module Stack.Types.UploadOpts | ||
( UploadOpts (..) | ||
, UploadVariant (..) | ||
) where | ||
|
||
import Stack.Prelude | ||
import Stack.Types.PvpBounds (PvpBounds) | ||
|
||
-- | Type representing command line options for the @stack upload@ command. | ||
data UploadOpts = UploadOpts | ||
{ itemsToWorkWith :: ![String] | ||
-- ^ The items to work with. | ||
, documentation :: !Bool | ||
-- ^ Uploading documentation for packages? | ||
, pvpBounds :: !(Maybe PvpBounds) | ||
, check :: !Bool | ||
, buildPackage :: !Bool | ||
, tarPath :: !(Maybe FilePath) | ||
, uploadVariant :: !UploadVariant | ||
, saveHackageCreds :: !FirstTrue | ||
-- ^ Save user's Hackage username and password in a local file? | ||
} | ||
|
||
-- | Type representing variants for uploading to Hackage. | ||
data UploadVariant | ||
= Publishing | ||
-- ^ Publish the package/a published package. | ||
| Candidate | ||
-- ^ Create a package candidate/a package candidate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters