report

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportCmd = &cobra.Command{
	Use:   "report",
	Short: "Generate a full project report",
	Long:  `Export a comprehensive project report with apps, products, entitlements, offerings, packages, and metrics into HTML, JSON, or YAML.`,
	RunE:  runReport,
}

ReportCmd exports a full project report

Functions

This section is empty.

Types

type AppData

type AppData struct {
	ID   string `json:"id" yaml:"id"`
	Name string `json:"name" yaml:"name"`
	Type string `json:"type" yaml:"type"`
}

type EntitlementData

type EntitlementData struct {
	ID          string `json:"id" yaml:"id"`
	LookupKey   string `json:"lookup_key" yaml:"lookup_key"`
	DisplayName string `json:"display_name" yaml:"display_name"`
}

type OfferingData

type OfferingData struct {
	ID          string        `json:"id" yaml:"id"`
	LookupKey   string        `json:"lookup_key" yaml:"lookup_key"`
	DisplayName string        `json:"display_name" yaml:"display_name"`
	IsCurrent   bool          `json:"is_current" yaml:"is_current"`
	Packages    []PackageData `json:"packages" yaml:"packages"`
}

type PackageData

type PackageData struct {
	ID          string `json:"id" yaml:"id"`
	LookupKey   string `json:"lookup_key" yaml:"lookup_key"`
	DisplayName string `json:"display_name" yaml:"display_name"`
}

type ProductData

type ProductData struct {
	ID              string `json:"id" yaml:"id"`
	StoreIdentifier string `json:"store_identifier" yaml:"store_identifier"`
	Type            string `json:"type" yaml:"type"`
	AppID           string `json:"app_id" yaml:"app_id"`
}

type ProjectReport

type ProjectReport struct {
	GeneratedAt  string            `json:"generated_at" yaml:"generated_at"`
	ProjectID    string            `json:"project_id" yaml:"project_id"`
	Summary      ReportSummary     `json:"summary" yaml:"summary"`
	Apps         []AppData         `json:"apps" yaml:"apps"`
	Products     []ProductData     `json:"products" yaml:"products"`
	Entitlements []EntitlementData `json:"entitlements" yaml:"entitlements"`
	Offerings    []OfferingData    `json:"offerings" yaml:"offerings"`
}

type ReportSummary

type ReportSummary struct {
	TotalApps         int     `json:"total_apps" yaml:"total_apps"`
	TotalProducts     int     `json:"total_products" yaml:"total_products"`
	TotalEntitlements int     `json:"total_entitlements" yaml:"total_entitlements"`
	TotalOfferings    int     `json:"total_offerings" yaml:"total_offerings"`
	TotalPackages     int     `json:"total_packages" yaml:"total_packages"`
	ActiveSubscribers int     `json:"active_subscribers" yaml:"active_subscribers"`
	ActiveTrials      int     `json:"active_trials" yaml:"active_trials"`
	MRR               float64 `json:"mrr" yaml:"mrr"`
	Revenue           float64 `json:"revenue" yaml:"revenue"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL