Documentation
¶
Index ¶
- Variables
- func Commands(con *console.SliverClient) []*cobra.Command
- func GetAutoAdult(con *console.SliverClient) bool
- func GetPageSize() int
- func GetTableStyle(con *console.SliverClient) table.Style
- func GetTableWithBordersStyle(con *console.SliverClient) table.Style
- func IsUserAnAdult(con *console.SliverClient) bool
- func PagesOf(renderedTable string) [][]string
- func PaginateTable(tw table.Writer, skipPages int, overflow bool, interactive bool, ...)
- func SettingsAlwaysOverflow(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsAutoAdultCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsBeaconsAutoResultCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsConsoleLogs(cmd *cobra.Command, con *console.SliverClient)
- func SettingsSaveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsSmallTerm(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsTablesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SettingsUserConnect(cmd *cobra.Command, con *console.SliverClient, args []string)
Constants ¶
This section is empty.
Variables ¶
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 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 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.