---
name: "destroy_master_token"
description: "destroy master token for a repository"
pack: "packagecloud"
runner_type: "local-shell-cmd"
enabled: true
parameters:
  user:
    type: string
    required: true
  repository:
    type: string
    required: true
  token_name:
    type: string
    required: true
    description: "Not the token value but the name used. See https://packagecloud.io/docs#revocation."
  sudo:
    immutable: true
    default: true
  cmd:
    immutable: true
    default: "package_cloud master_token destroy {{user}}/{{repository}} {{token_name}}"

---
name: "destroy_master_token"
description: "destroy master token for a repository"
pack: "packagecloud"
runner_type: "local-shell-cmd"
enabled: true
parameters:
  user:
    type: string
    required: true
  repository:
    type: string
    required: true
  token_name:
    type: string
    required: true
    description: "Not the token value but the name used. See https://packagecloud.io/docs#revocation."
  sudo:
    immutable: true
    default: true
  cmd:
    immutable: true
    default: "echo y | package_cloud master_token destroy {{user}}/{{repository}} {{token_name}}"

Destroy master token requires user input
Destroy master token requires user input
