cmd

package
v0.0.0-...-3529631 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SDKClient *ext.SDK

SDKClient represents an nks.APIClient

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 GetNotifications

func GetNotifications() []*models.Notification

GetNotifications returns notifications for current user

func GetOrgs

func GetOrgs() (*[]nks.Organization, error)

GetOrgs returns all organizations

func GetRepositoryByName

func GetRepositoryByName(name string, debug bool) (models.Repository, error)

GetRepositoryByName returns a custom repository matching a provided name

func PrintNotifications

func PrintNotifications(ns []*models.Notification, n int)

PrintNotifications prints a slice of Notifications to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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