Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sma1lboy/RegTool
/ functions
Functions
132 in github.com/Sma1lboy/RegTool
⨍
Functions
132
◇
Types & classes
28
↓ 9 callers
Function
GetCommand
(name string)
cmd/command.go:33
↓ 9 callers
Function
GetInfoText
GetInfoText returns styled info text
cmd/styles.go:87
↓ 6 callers
Function
RegisterCommand
(name, description string, cmd Command)
cmd/command.go:25
↓ 5 callers
Function
Error
(messages ...string)
console/console.go:47
↓ 5 callers
Function
GetErrorText
GetErrorText returns styled error text
cmd/styles.go:77
↓ 5 callers
Function
GetRemoteRegistrySources
GetRemoteRegistrySources fetches the remote sources and returns them
source/source.go:12
↓ 5 callers
Function
GetStyledTitle
GetStyledTitle returns a styled title for a given command
cmd/styles.go:56
↓ 5 callers
Function
GetSuccessText
GetSuccessText returns styled success text
cmd/styles.go:82
↓ 5 callers
Function
Println
(color string, messages ...string)
console/console.go:30
↓ 5 callers
Function
RegisterAlias
RegisterAlias registers a primary name with its aliases
common/alias/alias.go:21
↓ 5 callers
Function
RegisterManager
RegisterManager registers a manager for the given names
source/source.go:59
↓ 5 callers
Method
Update
(tea.Msg)
cmd/command.go:11
↓ 5 callers
Function
tickEvery
()
cmd/list_all_registry.go:206
↓ 4 callers
Method
View
()
cmd/command.go:12
↓ 3 callers
Function
GetEnvVarFromFile
GetEnvVarFromFile reads the environment variable from the specified shell configuration file.
shell/utils.go:54
↓ 3 callers
Function
GetStyledQuitText
GetStyledQuitText returns the styled quit instruction
cmd/styles.go:72
↓ 3 callers
Function
ReadBackupFile
ReadBackupFile reads the backup file and returns the data
source/localdata/localdata.go:42
↓ 3 callers
Method
SetRegistry
SetRegistry sets the registry URL based on the specified region and sources. This method needs to be implemented differently depending on the operatin
source/registry-manager.go:23
↓ 3 callers
Function
StringToRegion
(region string)
source/structs/structs.go:11
↓ 3 callers
Function
renderIcon
()
tools/gen-proj-banner/src/components/BannerGenerator.tsx:51
↓ 3 callers
Method
wrapText
(text string, width int)
cmd/list_all_registry.go:138
↓ 2 callers
Function
GetAllRegisteredApp
Get All Registered
source/source.go:94
↓ 2 callers
Function
RegisterShell
RegisterShell registers a new shell factory.
shell/shell_manager.go:22
↓ 2 callers
Function
SetEnvVarToFile
SetEnvVarToFile writes the environment variable to the specified shell configuration file.
shell/utils.go:12
↓ 2 callers
Function
animateProgress
animateProgress sends a tick message at a fixed interval
cmd/update.go:147
↓ 2 callers
Function
ensureDirectory
EnsureDirectory checks if the directory exists and creates it if it doesn't
source/localdata/localdata.go:27
↓ 2 callers
Function
newMainMenuModel
()
cmd/run.go:22
↓ 2 callers
Method
startListingRegistries
()
cmd/list_all_registry.go:199
↓ 2 callers
Function
waitForUpdateMessages
waitForUpdateMessages waits for update messages and sends them as tea messages
cmd/update.go:162
↓ 1 callers
Function
ChangeAllRegistry
(region string, updateChan chan string)
source/command.go:25
↓ 1 callers
Function
ConvertSources
ConvertSources converts sources to a map of package managers to sources
source/source.go:25
↓ 1 callers
Function
GetAllAliases
GetAllAliases returns all aliases for a given primary name
common/alias/alias.go:38
↓ 1 callers
Function
GetAllPrimary
()
common/alias/alias.go:44
↓ 1 callers
Method
GetCurrRegistry
GetCurrRegistry retrieves the current registry URL. Returns: - string: The current registry URL. - error: An error if there is an issue retrieving the
source/registry-manager.go:13
↓ 1 callers
Function
GetPrimary
GetPrimary returns the primary name for a given alias
common/alias/alias.go:30
↓ 1 callers
Function
GetRemoteSourcesMap
()
source/source.go:41
↓ 1 callers
Function
GetStyledOption
GetStyledOption returns a styled option for menus
cmd/styles.go:61
↓ 1 callers
Function
Init
()
env/env.go:15
↓ 1 callers
Method
Init
()
cmd/command.go:10
↓ 1 callers
Method
IsExists
check is this App exists
source/registry-manager.go:26
↓ 1 callers
Function
ListAllRegistry
(ch chan<- string)
source/command.go:53
↓ 1 callers
Function
ListCommandDescriptions
()
cmd/command.go:41
↓ 1 callers
Function
ListCommandNames
()
cmd/command.go:56
↓ 1 callers
Function
ListRegistryByAppName
(appName string, ch chan<- string)
source/command.go:81
↓ 1 callers
Function
NewListAllRegistryModel
()
cmd/list_all_registry.go:212
↓ 1 callers
Function
NewListRegistryModel
()
cmd/list_registry.go:187
↓ 1 callers
Function
Run
()
cmd/run.go:78
↓ 1 callers
Function
SaveToBackup
SaveToBackup saves the provided data to the backup file
source/localdata/localdata.go:69
↓ 1 callers
Method
SetEnv
(key, value string)
shell/shell_manager.go:11
↓ 1 callers
Function
Update
here is the command implementation of the source Check if there is support registry
source/command.go:13
↓ 1 callers
Function
UpdateRegistry
(region string, app string)
source/source.go:65
↓ 1 callers
Function
applyOriginalStyle
(original, wrapped string)
cmd/list_all_registry.go:188
↓ 1 callers
Function
applySingleOriginalStyle
(original, wrapped string)
cmd/list_registry.go:223
↓ 1 callers
Function
convertLocalSources
Convert map[Name]Source
source/local-source.go:9
↓ 1 callers
Method
formatApp
(appLine string, allLines []string)
cmd/list_all_registry.go:110
↓ 1 callers
Method
formatApp
(appLine string, allLines []string)
cmd/list_registry.go:129
↓ 1 callers
Method
getCurrentSources
()
source/app/gem/gem.go:78
↓ 1 callers
Function
getRandomColorWithOpacity
()
tools/gen-proj-banner/src/components/BannerGenerator.tsx:42
↓ 1 callers
Function
getRandomIcon
()
tools/gen-proj-banner/src/components/BannerGenerator.tsx:37
↓ 1 callers
Function
newAliasManager
newAliasManager creates a new AliasManager
common/alias/alias.go:10
↓ 1 callers
Function
newChangeNameRegionModel
()
cmd/change_name_region.go:22
↓ 1 callers
Function
removeColorAttributes
(s string)
cmd/list_all_registry.go:171
↓ 1 callers
Function
removeSingleColorAttributes
(s string)
cmd/list_registry.go:206
↓ 1 callers
Method
startListingRegistryByAppName
(appName string)
cmd/list_registry.go:180
↓ 1 callers
Function
waitForUpdate
waitForUpdate waits for the update to complete and sends the result
cmd/update.go:154
Function
App
()
tools/gen-proj-banner/src/App.tsx:2
Function
BannerGenerator
({ rows, cols, textWidth, }: { rows: number; cols: number; textWidth: number; })
tools/gen-proj-banner/src/components/BannerGenerator.tsx:28
Function
Debug
(messages ...string)
console/console.go:59
Function
GetBorderedBox
GetBorderedBox returns a bordered box containing the given text
cmd/styles.go:92
Method
GetCurrRegistry
()
source/app/npm/npm.go:15
Method
GetCurrRegistry
()
source/app/yarn/yarn.go:14
Method
GetCurrRegistry
()
source/app/gem/gem.go:14
Method
GetCurrRegistry
()
source/app/pip/pip.go:14
Method
GetCurrRegistry
GetCurrRegistry gets the current Homebrew registry
source/app/homebrew/homebrew.go:17
Function
GetEnv
GetEnv attempts to get the environment variable from the OS environment first, and if not found, it reads from the specified shell configuration file.
shell/utils.go:88
Method
GetEnv
(key string)
shell/shell_manager.go:12
Method
GetEnv
GetEnv reads the environment variable from the zsh configuration file.
shell/zsh/zsh.go:14
Method
GetEnv
(key string)
shell/bash/bash.go:11
Function
GetLocalSourcesMap
()
source/local-source.go:34
Function
Info
(messages ...string)
console/console.go:55
Method
Init
Init initializes the update model
cmd/update.go:28
Method
Init
()
cmd/change_name_region.go:31
Method
Init
()
cmd/run.go:30
Method
Init
()
cmd/list_all_registry.go:21
Method
Init
()
cmd/change_all.go:18
Method
Init
()
cmd/list_registry.go:24
Method
IsExists
()
source/app/npm/npm.go:49
Method
IsExists
()
source/app/yarn/yarn.go:48
Method
IsExists
()
source/app/gem/gem.go:73
Method
IsExists
()
source/app/pip/pip.go:49
Method
IsExists
()
source/app/homebrew/homebrew.go:74
Function
NewShellManager
NewShellManager creates a new ShellManager based on the current shell.
shell/shell_manager.go:27
Function
Print
(color string, messages ...string)
console/console.go:34
Function
Printf
(color string, format string, a ...interface{})
console/console.go:39
Method
SetEnv
(key, value string)
shell/shell.go:4
Method
SetEnv
SetEnv writes the environment variable to the zsh configuration file.
shell/zsh/zsh.go:9
Method
SetEnv
(key, value string)
shell/bash/bash.go:7
Method
SetRegistry
(region structs.Region, sources *structs.RegistrySources)
source/app/npm/npm.go:25
Method
SetRegistry
(region structs.Region, sources *structs.RegistrySources)
source/app/yarn/yarn.go:24
Method
SetRegistry
(region structs.Region, sources *structs.RegistrySources)
source/app/gem/gem.go:32
next →
1–100 of 132, ranked by callers