settings

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

README

Style

Defines terminal interface styles.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SliverDefault = table.Style{
		Name: "SliverDefault",
		Box: table.BoxStyle{
			BottomLeft:       " ",
			BottomRight:      " ",
			BottomSeparator:  " ",
			Left:             " ",
			LeftSeparator:    " ",
			MiddleHorizontal: "=",
			MiddleSeparator:  " ",
			MiddleVertical:   " ",
			PaddingLeft:      " ",
			PaddingRight:     " ",
			Right:            " ",
			RightSeparator:   " ",
			TopLeft:          " ",
			TopRight:         " ",
			TopSeparator:     " ",
			UnfinishedRow:    "~~",
		},
		Color: table.ColorOptions{
			IndexColumn:  text.Colors{},
			Footer:       text.Colors{},
			Header:       text.Colors{},
			Row:          text.Colors{},
			RowAlternate: text.Colors{},
		},
		Format: table.FormatOptions{
			Footer: text.FormatDefault,
			Header: text.FormatTitle,
			Row:    text.FormatDefault,
		},
		Options: table.Options{
			DrawBorder:      false,
			SeparateColumns: true,
			SeparateFooter:  false,
			SeparateHeader:  true,
			SeparateRows:    false,
		},
	}
)

Functions

func Commands

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func GetAutoAdult

func GetAutoAdult(con *console.SliverClient) bool

GetAutoAdult - Get the current auto adult setting.

func GetPageSize

func GetPageSize() int

GetPageSize - Page size for tables.

func GetTableStyle

func GetTableStyle(con *console.SliverClient) table.Style

GetTableStyle - Get the current table style.

func GetTableWithBordersStyle

func GetTableWithBordersStyle(con *console.SliverClient) table.Style

GetTableWithBordersStyle - Get the table style with borders.

func IsUserAnAdult

func IsUserAnAdult(con *console.SliverClient) bool

IsUserAnAdult - This should be called for any dangerous (OPSEC-wise) functions.

func PagesOf

func PagesOf(renderedTable string) [][]string

PagesOf - Return the pages of a table.

func PaginateTable

func PaginateTable(tw table.Writer, skipPages int, overflow bool, interactive bool, con *console.SliverClient)

PaginateTable - Render paginated table to console.

func SettingsAlwaysOverflow

func SettingsAlwaysOverflow(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsAlwaysOverflow - Toggle always overflow.

func SettingsAutoAdultCmd

func SettingsAutoAdultCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsAutoAdultCmd - The client settings command.

func SettingsBeaconsAutoResultCmd

func SettingsBeaconsAutoResultCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsBeaconsAutoResultCmd - The client settings command.

func SettingsCmd

func SettingsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsCmd - The client settings command.

func SettingsConsoleLogs

func SettingsConsoleLogs(cmd *cobra.Command, con *console.SliverClient)

SettingsConsoleLogs - Toggle console logs.

func SettingsSaveCmd

func SettingsSaveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsSaveCmd - The client settings command.

func SettingsSmallTerm

func SettingsSmallTerm(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsSmallTerm - Modify small terminal width value.

func SettingsTablesCmd

func SettingsTablesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsTablesCmd - The client settings command.

func SettingsUserConnect

func SettingsUserConnect(cmd *cobra.Command, con *console.SliverClient, args []string)

SettingsAlwaysOverflow - Toggle always overflow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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