unoverse 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,16 +44,20 @@ _ground_do() {
44
44
  # so there is nothing to leave the flow for. The token comes from
45
45
  # cloud.digitalocean.com/account/api (Generate New Token, read and write).
46
46
  echo ""
47
- info "doctl needs a DigitalOcean API token ${DIM}(cloud.digitalocean.com/account/api)${NC}"
47
+ # ONE prompt, ours. doctl auth init prints its own paragraph repeating the link,
48
+ # so the token is taken here and handed over silently (-t): one message, one paste.
49
+ info "A DigitalOcean API token connects your account. Generate one here:"
48
50
  echo ""
49
- if ! doctl auth init; then
50
- fail "authentication did not complete"
51
- return 1
52
- fi
53
- if ! doctl account get >/dev/null 2>&1; then
51
+ echo -e " ${CYAN}https://cloud.digitalocean.com/account/api/tokens${NC}"
52
+ echo ""
53
+ local DO_TOKEN
54
+ read -r -s -p " Paste the token (hidden): " DO_TOKEN
55
+ echo ""
56
+ if [ -z "$DO_TOKEN" ] || ! doctl auth init -t "$DO_TOKEN" >/dev/null 2>&1 || ! doctl account get >/dev/null 2>&1; then
54
57
  fail "that token did not authenticate"
55
58
  return 1
56
59
  fi
60
+ ok "DigitalOcean connected"
57
61
  fi
58
62
  ok "doctl authenticated"
59
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",