Skip to content

Print helpful message when vouch init is run without --domain - #182

Merged
rampyg merged 1 commit into
vouch-protocol:mainfrom
fahadhewad:fix/init-no-domain-message
Jul 4, 2026
Merged

Print helpful message when vouch init is run without --domain#182
rampyg merged 1 commit into
vouch-protocol:mainfrom
fahadhewad:fix/init-no-domain-message

Conversation

@rampyg

@rampyg rampyg commented Jun 28, 2026

Copy link
Copy Markdown
Member

Hi @fahadhewad, re-opening your contribution. Your original PR #132 was closed automatically due to a maintenance issue on the main branch, nothing on your side. Your branch and commits are unchanged. Apologies for the disruption, and thank you. The earlier review comments did not carry over, so please continue here.

Original PR: #132


Closes #128.

When vouch init is run with no domain argument, the CLI silently falls back to example.com with no explanation. This change prints a short message to stderr telling the user what default was chosen and how to pass their own domain.

Example output with this fix applied:

vouch init
No domain specified, using example.com. Pass --domain your.domain to set a real domain.

@rampyg
rampyg merged commit 7784a1b into vouch-protocol:main Jul 4, 2026
23 of 26 checks passed
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Vouch Verified Contributor ✨

Thank you @fahadhewad. This merged pull request earns a signed
Vouch Verified Contributor certificate, chained to the project root authority.

Vouch Verified Contributor

Your certificate (download and share it): https://vouch-protocol.com/c/fahadhewad/182

Add the badge to your profile or site (optional):

[![Vouch Verified Contributor](https://img.shields.io/badge/Vouch-Verified_Contributor-7C2D3A?style=for-the-badge&labelColor=2d2d2d)](https://vouch-protocol.com/c/fahadhewad/182)
Your Verifiable Credential (eddsa-jcs-2022)
{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://vouch-protocol.com/contexts/v1"
  ],
  "id": "urn:uuid:1b6b9507-42b5-4e1a-8aa5-5ca1b1f979e5",
  "type": [
    "VerifiableCredential",
    "VouchCredential"
  ],
  "issuer": "did:web:vouch-protocol.com:contributors",
  "validFrom": "2026-07-04T09:31:58Z",
  "validUntil": "2126-06-10T09:31:58Z",
  "credentialSubject": {
    "id": "did:web:vouch-protocol.com:contributors",
    "vouchVersion": "1.0",
    "intent": {
      "action": "attest",
      "target": "github:fahadhewad",
      "resource": "https://github.com/vouch-protocol/vouch/pull/182",
      "role": "verified-contributor",
      "repository": "vouch-protocol/vouch",
      "pullRequest": 182
    },
    "delegationChain": [
      {
        "issuer": "did:web:vouch-protocol.com",
        "subject": "did:web:vouch-protocol.com:contributors",
        "intent": {
          "action": "attest",
          "target": "github:fahadhewad",
          "resource": "https://github.com/vouch-protocol/vouch/pull/182",
          "role": "verified-contributor",
          "repository": "vouch-protocol/vouch",
          "pullRequest": 182
        },
        "validFrom": "2026-06-19T04:45:43Z",
        "validUntil": "2036-06-16T04:45:43Z",
        "parentProofValue": "z5g1N4udQdy5asdxnV3qFhApB5cAh28DkMqHjEUSNG6cc8hrDDsxWyVbgn1XXUFR"
      }
    ]
  },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "created": "2026-07-04T09:31:58Z",
    "verificationMethod": "did:web:vouch-protocol.com:contributors#key-1",
    "proofPurpose": "assertionMethod",
    "proofValue": "z2va7zteZKtSSJJjEPxFutDp4R7R6QhsnEWWVWiXnVZP7hmUs5Lrqyvf6pMBE4pcaTCv3jEX4Z7dDC8iHEkBitcEa"
  }
}

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Vouch Verified Contributor ✨

Thank you @fahadhewad. This merged pull request earns a signed
Vouch Verified Contributor certificate, chained to the project root authority.

Vouch Verified Contributor

Your certificate (download and share it): https://vouch-protocol.com/c/fahadhewad/182

Add the badge to your profile or site (optional):

[![Vouch Verified Contributor](https://img.shields.io/badge/Vouch-Verified_Contributor-7C2D3A?style=for-the-badge&labelColor=2d2d2d)](https://vouch-protocol.com/c/fahadhewad/182)
Your Verifiable Credential (eddsa-jcs-2022)
{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://vouch-protocol.com/contexts/v1"
  ],
  "id": "urn:uuid:f5679aab-e0b7-4e51-82cd-63e740e5ee46",
  "type": [
    "VerifiableCredential",
    "VouchCredential"
  ],
  "issuer": "did:web:vouch-protocol.com:contributors",
  "validFrom": "2026-07-04T09:34:53Z",
  "validUntil": "2126-06-10T09:34:53Z",
  "credentialSubject": {
    "id": "did:web:vouch-protocol.com:contributors",
    "vouchVersion": "1.0",
    "intent": {
      "action": "attest",
      "target": "github:fahadhewad",
      "resource": "https://github.com/vouch-protocol/vouch/pull/182",
      "role": "verified-contributor",
      "repository": "vouch-protocol/vouch",
      "pullRequest": 182
    },
    "delegationChain": [
      {
        "issuer": "did:web:vouch-protocol.com",
        "subject": "did:web:vouch-protocol.com:contributors",
        "intent": {
          "action": "attest",
          "target": "github:fahadhewad",
          "resource": "https://github.com/vouch-protocol/vouch/pull/182",
          "role": "verified-contributor",
          "repository": "vouch-protocol/vouch",
          "pullRequest": 182
        },
        "validFrom": "2026-06-19T04:45:43Z",
        "validUntil": "2036-06-16T04:45:43Z",
        "parentProofValue": "z5g1N4udQdy5asdxnV3qFhApB5cAh28DkMqHjEUSNG6cc8hrDDsxWyVbgn1XXUFR"
      }
    ]
  },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "created": "2026-07-04T09:34:53Z",
    "verificationMethod": "did:web:vouch-protocol.com:contributors#key-1",
    "proofPurpose": "assertionMethod",
    "proofValue": "z5Yr94GR34JEFgu4ZN26fXssxBLLrnKCdgwJ2XeHhrrK3aeQRyVAUPP2rjATHuEj39yQncetnmfEmrZmCzZkDc6ju"
  }
}

rampyg added a commit that referenced this pull request Jul 4, 2026
…Abhi757575 (#183) (#232)

Signed-off-by: Ramprasad Gaddam <groups.rampy1@gmail.com>
rampyg added a commit that referenced this pull request Jul 4, 2026
chore: record original authorship for #181, #182, #183 in main history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Friendlier message when vouch init is run without a domain

2 participants