cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package cmd provides a command-line interface for changing GHAS settings for a given organization.

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const VERSION = "0.1.0"

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GenerateChart

func GenerateChart(title string, xAxis []string, yAxis ...YAxis)

func ReadFile

func ReadFile(filename string) ([]byte, error)

write a function that reads a file and returns its content as a json object

func WriteFile

func WriteFile(filename string, content []byte) error

Types

type LicenseReport

type LicenseReport struct {
	ConsumedLicenses github.ConsumedLicenses `json:"consumed_licenses"`
	Date             string                  `json:"date"`
}

type YAxis

type YAxis struct {
	Label  string
	Values []int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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