censyscopy

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description() string

Description returns the copy for the description of this CLI.

func DocumentationCLI

func DocumentationCLI(w io.Writer) string

DocumentationCLI returns the copy for the documentation of this CLI. Takes a writer to determine if the output is a TTY for link rendering.

func DocumentationOrgID

func DocumentationOrgID(w io.Writer) string

DocumentationOrgID returns the copy for the documentation for obtaining an organization ID. Takes a writer to determine if the output is a TTY for link rendering.

func DocumentationPAT

func DocumentationPAT(w io.Writer) string

DocumentationPAT returns the copy for the documentation for obtaining a personal access token. Takes a writer to determine if the output is a TTY for link rendering.

func Title

func Title() string

Title returns the copy for the title of this CLI.

Types

type CencliLink string
const (
	CencliRepo              CencliLink = "https://github.com/censys/cencli"
	CencliDocs              CencliLink = "https://docs.censys.com/docs/platform-cli"
	CensysPATInstructions   CencliLink = "https://docs.censys.com/reference/get-started#step-2-create-a-personal-access-token"
	CensysOrgIDInstructions CencliLink = "https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional"
)

func (CencliLink) Render

func (l CencliLink) Render(anchorText string) string

Render returns a terminal-friendly clickable link. This should only be used if the result is being written to a TTY. If no anchor text is provided, the link's URL will be used as the anchor text, with the protocol stripped.

func (CencliLink) String

func (l CencliLink) String() string

Jump to

Keyboard shortcuts

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