form3tech-oss / go-pagerduty-oncall-report

Generate a report for the oncall rotation using PagerDuty API
Apache License 2.0
22 stars 12 forks source link

Getting Error on the "brew install" step #45

Open ajayagrawalacquia opened 1 year ago

ajayagrawalacquia commented 1 year ago

Hello Team,

AjayAgrawal:go-pagerduty-oncall-report ajay.agrawal$ brew install pd-report
Error: pd-report: wrong number of arguments (given 1, expected 0)
AjayAgrawal:go-pagerduty-oncall-report ajay.agrawal$

Any idea how this can be resolved ?

kgoralski commented 1 year ago

Hello Team,

AjayAgrawal:go-pagerduty-oncall-report ajay.agrawal$ brew install pd-report
Error: pd-report: wrong number of arguments (given 1, expected 0)
AjayAgrawal:go-pagerduty-oncall-report ajay.agrawal$

Any idea how this can be resolved ?

Same here.

go install github.com/form3tech-oss/go-pagerduty-oncall-report@latest

then you can use it with

$ go-pagerduty-oncall-report

Generate on-call rotation reports automatically
from your PagerDuty account.

Usage:
  pd-report [command]

Available Commands:
  help        Help about any command
  report      generates the report(s) for the given schedule(s) id(s)
  schedules   list schedules on PagerDuty
  services    list services on PagerDuty
  teams       list teams on PagerDuty
  users       list users on PagerDuty

Flags:
      --config string   configuration file (default is ~/.pd-report-config.yml)
  -h, --help            help for pd-report

Use "pd-report [command] --help" for more information about a command.

or just install from source