Content-Length: 227105 | pFad | https://github.com/ietf-tools/pypi-publish/commit/e583acb93a3d919b21621707df6eb9cf2eee76b1

70 fix: gh auth additional info + extra input validation · ietf-tools/pypi-publish@e583acb · GitHub
Skip to content

Commit

Permalink
fix: gh auth additional info + extra input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 1, 2022
1 parent 8551f4b commit e583acb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main () {
message: 'Enter path to Python executable:',
default: process.env.PYTHONHOME || process.env.PYTHON || '',
validate (v) {
return (v && v.length > 0) || 'Enter a valid Python path'
return (v && v.length > 1) || 'Enter a valid Python path'
}
},
{
Expand All @@ -45,7 +45,7 @@ async function main () {
name: 'pass',
message: 'Enter your PyPI password:',
validate (v) {
return (v && v.length > 0) || 'Enter a PyPI password'
return (v && v.length > 3) || 'Enter a PyPI password'
}
},
{
Expand Down Expand Up @@ -73,6 +73,7 @@ async function main () {
onVerification(verif) {
console.info('\nOpen in your browser: %s', verif.verification_uri)
console.info('Enter code: %s\n', verif.user_code)
console.info('(The code has already been copied to your clipboard for convenience.)\n')
spinnerAuth.start()
try {
clipboardy.writeSync(verif.user_code)
Expand Down Expand Up @@ -294,4 +295,4 @@ async function main () {
process.exit(0)
}

main()
main()

0 comments on commit e583acb

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/ietf-tools/pypi-publish/commit/e583acb93a3d919b21621707df6eb9cf2eee76b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy