cmd

package
v0.0.0-...-f747591 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2024 Martin Hiriart

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

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.

Types

type InstalledModules

type InstalledModules struct {
	Name          string   `json:"Name"`
	Version       string   `json:"Version"`
	Type          string   `json:"Type"`
	Description   string   `json:"Description"`
	Author        string   `json:"Author"`
	CompanyName   string   `json:"CompanyName"`
	Copyright     string   `json:"Copyright"`
	PublishedDate string   `json:"PublishedDate"`
	InstalledDate string   `json:"InstalledDate"`
	UpdatedDate   any      `json:"UpdatedDate"`
	LicenseURI    string   `json:"LicenseUri"`
	ProjectURI    string   `json:"ProjectUri"`
	IconURI       any      `json:"IconUri"`
	Tags          []string `json:"Tags"`
	Includes      struct {
		Workflow       []any `json:"Workflow"`
		Function       []any `json:"Function"`
		Command        []any `json:"Command"`
		DscResource    []any `json:"DscResource"`
		RoleCapability []any `json:"RoleCapability"`
		Cmdlet         []any `json:"Cmdlet"`
	} `json:"Includes"`
	PowerShellGetFormatVersion any    `json:"PowerShellGetFormatVersion"`
	ReleaseNotes               any    `json:"ReleaseNotes"`
	Dependencies               []any  `json:"Dependencies"`
	RepositorySourceLocation   string `json:"RepositorySourceLocation"`
	Repository                 string `json:"Repository"`
	PackageManagementProvider  string `json:"PackageManagementProvider"`
	AdditionalMetadata         struct {
		Summary                   string `json:"summary"`
		PackageManagementProvider string `json:"PackageManagementProvider"`
		Type                      string `json:"Type"`
		SourceName                string `json:"SourceName"`
		Tags                      string `json:"tags"`
		Copyright                 string `json:"copyright"`
		Published                 string `json:"published"`
		Description               string `json:"description"`
		Installeddate             string `json:"installeddate"`
		InstalledLocation         string `json:"InstalledLocation"`
		IsPrerelease              bool   `json:"IsPrerelease"`
	} `json:"AdditionalMetadata"`
	InstalledLocation string `json:"InstalledLocation"`
}

type SearchResults

type SearchResults struct {
	Name          string   `json:"Name"`
	Version       string   `json:"Version"`
	Type          string   `json:"Type"`
	Description   string   `json:"Description"`
	Author        string   `json:"Author"`
	CompanyName   any      `json:"CompanyName"`
	Copyright     string   `json:"Copyright"`
	PublishedDate string   `json:"PublishedDate"`
	InstalledDate any      `json:"InstalledDate"`
	UpdatedDate   any      `json:"UpdatedDate"`
	LicenseURI    string   `json:"LicenseUri"`
	ProjectURI    string   `json:"ProjectUri"`
	IconURI       any      `json:"IconUri"`
	Tags          []string `json:"Tags"`
	Includes      struct {
		Command        []string `json:"Command"`
		DscResource    []any    `json:"DscResource"`
		RoleCapability []any    `json:"RoleCapability"`
		Function       []string `json:"Function"`
		Workflow       []any    `json:"Workflow"`
		Cmdlet         []any    `json:"Cmdlet"`
	} `json:"Includes"`
	PowerShellGetFormatVersion any `json:"PowerShellGetFormatVersion"`
	ReleaseNotes               any `json:"ReleaseNotes"`
	Dependencies               []struct {
		Name            string `json:"Name"`
		MinimumVersion  string `json:"MinimumVersion,omitempty"`
		CanonicalID     string `json:"CanonicalId"`
		RequiredVersion string `json:"RequiredVersion,omitempty"`
	} `json:"Dependencies"`
	RepositorySourceLocation  string `json:"RepositorySourceLocation"`
	Repository                string `json:"Repository"`
	PackageManagementProvider string `json:"PackageManagementProvider"`
	AdditionalMetadata        struct {
		Summary                   string    `json:"summary"`
		Copyright                 string    `json:"copyright"`
		GUID                      string    `json:"GUID"`
		IsAbsoluteLatestVersion   string    `json:"isAbsoluteLatestVersion"`
		Created                   string    `json:"created"`
		DownloadCount             string    `json:"downloadCount"`
		IsLatestVersion           string    `json:"isLatestVersion"`
		Description               string    `json:"description"`
		Updated                   time.Time `json:"updated"`
		PackageSize               string    `json:"packageSize"`
		RequireLicenseAcceptance  string    `json:"requireLicenseAcceptance"`
		PackageManagementProvider string    `json:"PackageManagementProvider"`
		FileList                  string    `json:"FileList"`
		Authors                   string    `json:"Authors"`
		Published                 string    `json:"published"`
		CompanyName               string    `json:"CompanyName"`
		Tags                      string    `json:"tags"`
		NormalizedVersion         string    `json:"NormalizedVersion"`
		IsPrerelease              string    `json:"IsPrerelease"`
		LastUpdated               string    `json:"lastUpdated"`
		Functions                 string    `json:"Functions"`
		VersionDownloadCount      string    `json:"versionDownloadCount"`
		SourceName                string    `json:"SourceName"`
		ItemType                  string    `json:"ItemType"`
		DevelopmentDependency     string    `json:"developmentDependency"`
	} `json:"AdditionalMetadata"`
}

Jump to

Keyboard shortcuts

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