Fix homebrew release (#242)

This commit is contained in:
Sung Won Cho 2019-08-01 11:42:43 +10:00 committed by GitHub
commit 2c80340e19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -122,7 +122,7 @@ endif
@(cd "${cliHomebrewDir}" && \
./release.sh \
"$(version)" \
"${shasum -a 256 "${outputDir}/dnote_$(version)_darwin_amd64.tar.gz" | cut -d ' ' -f 1}" \
"${shasum -a 256 "${cliOutputDir}/dnote_$(version)_darwin_amd64.tar.gz" | cut -d ' ' -f 1}" \
)
.PHONY: release-cli

View file

@ -97,6 +97,8 @@ func Do(ctx context.DnoteCtx, email, password string) error {
func newRun(ctx context.DnoteCtx) infra.RunEFunc {
return func(cmd *cobra.Command, args []string) error {
log.Plain("Welcome to Dnote Pro (https://dnote.io).\n")
var email, password string
if err := ui.PromptInput("email", &email); err != nil {
return errors.Wrap(err, "getting email input")