MCPcopy Create free account

hub / github.com/NazmusSayad/.dotfiles / functions

Functions203 in github.com/NazmusSayad/.dotfiles

↓ 57 callersFunctionExecNativeCommand
(args []string, options ...ExecCommandOptions)
src/helpers/cmd.go:32
↓ 21 callersFunctionIsFileExists
(path string)
src/utils/fs.go:5
↓ 13 callersFunctionResolvePath
(input string)
src/helpers/path.go:11
↓ 13 callersFunctionrunCommand
(commands []string)
src/scripts/packages-sync/main.go:114
↓ 12 callersFunctionTernary
(cond bool, a, b T)
src/utils/ternary.go:3
↓ 9 callersFunctionmustEntriesByKey
(t *testing.T, raw string)
src/helpers/json-patch_test.go:218
↓ 8 callersFunctionIsCommandInPath
(command string)
src/utils/path.go:5
↓ 7 callersFunctionMergeJSONObject
(prev string, next string)
src/helpers/json-patch.go:11
↓ 7 callersFunctionparseObjectLayout
(raw []byte)
src/helpers/json-patch.go:214
↓ 6 callersFunctionjsonEqual
(left []byte, right []byte)
src/helpers/json-patch.go:402
↓ 6 callersFunctionskipSpace
(raw []byte, i int)
src/helpers/json-patch.go:431
↓ 5 callersFunctionEnsureAdminExecution
()
src/helpers/admin_unix.go:17
↓ 5 callersFunctionGetCurrentGitBranchOrExit
()
src/helpers/git.go:81
↓ 5 callersFunctionIsGitRepo
()
src/helpers/git.go:12
↓ 5 callersFunctionsetAgentModel
(currentAgentModels OpencodeResolveAgentModels, agentId string, modelId string)
src/helpers/opencode/resolve.go:168
↓ 5 callersFunctionsetAgentModel
(fullConfig map[string]any, agent string, modelId string)
src/scripts/opencode-configure/main.go:142
↓ 5 callersFunctionsetEnv
(name, value string)
src/scripts/windows-env/main.go:77
↓ 4 callersFunctionGetCurrentGitRemoteOrExit
()
src/helpers/git.go:93
↓ 4 callersFunctionTerminateProcessTree
(pid int32)
src/helpers/process.go:36
↓ 3 callersFunctionInGitRepoOrExit
()
src/helpers/git.go:74
↓ 3 callersFunctionWriteEnv
(scope Scope, name, value string)
src/helpers/env.go:47
↓ 3 callersFunctionconsumeString
(raw []byte, i int)
src/helpers/json-patch.go:444
↓ 3 callersFunctionescape
(s string)
src/install-start-menu/main.go:15
↓ 3 callersFunctionpsEscape
(s string)
src/helpers/env.go:33
↓ 2 callersFunctionBuildWingetOptions
(p helpers.WingetAppConfig, interactive bool)
src/helpers/winget/command.go:5
↓ 2 callersFunctionFetchModels
(providerID string, providerURL string, apiKey string)
src/helpers/opencode/fetch.go:33
↓ 2 callersFunctionFindOtherPIDByExecutablePath
(executablePath string, currentPID int32)
src/helpers/process.go:12
↓ 2 callersFunctionGenerateOffDaysHash
(month time.Month, day int)
src/helpers/slack/config.go:61
↓ 2 callersFunctionGenerateSymlink
(source string, target string)
src/helpers/fs.go:56
↓ 2 callersFunctionGenerateWindowsTaskXML
(options WindowsTaskOptions)
src/helpers/windows-tasks.go:48
↓ 2 callersFunctionGetGitHubUser
()
src/helpers/github.go:180
↓ 2 callersFunctionGetScoopApps
()
src/helpers/apps.go:63
↓ 2 callersFunctionGetScoopConfigAppMap
(configs []helpers.ScoopAppConfig)
src/helpers/scoop/config.go:10
↓ 2 callersFunctionGetScoopConfigBucketsList
(configs []helpers.ScoopAppConfig)
src/helpers/scoop/config.go:30
↓ 2 callersFunctionGetScoopExportAppMap
(export ScoopExport)
src/helpers/scoop/exports.go:41
↓ 2 callersFunctionGetScoopExportBucketsList
(export ScoopExport)
src/helpers/scoop/exports.go:51
↓ 2 callersFunctionGetScoopExports
()
src/helpers/scoop/exports.go:25
↓ 2 callersFunctionGetSlackStartupConfig
()
src/helpers/slack/startup-config.go:17
↓ 2 callersFunctionGetWingetApps
()
src/helpers/apps.go:115
↓ 2 callersFunctionHourToAmPm
(h int)
src/utils/time.go:5
↓ 2 callersFunctionIsSlackRunning
()
src/helpers/slack/runtime.go:14
↓ 2 callersFunctionReadSlackConfig
()
src/helpers/slack/config.go:44
↓ 2 callersFunctionResolveApiKey
(providerId string, modelsDotDevProvider ModelsDotDevProvider, authConfig AuthConfig)
src/helpers/opencode/api-key.go:5
↓ 2 callersFunctionSlackApplicationStart
()
src/helpers/slack/runtime.go:31
↓ 2 callersFunctionSlackApplicationStop
()
src/helpers/slack/runtime.go:56
↓ 2 callersFunctionSlackLaunch
(status SlackStatus)
src/helpers/slack/launch.go:39
↓ 2 callersFunctionSortArrayOfString
(slice []string)
src/utils/array.go:17
↓ 2 callersFunctionUniqueArray
(slice []T)
src/utils/array.go:3
↓ 2 callersFunctionWriteGithubReleaseZipFile
(outDir, ghURL, archivePattern, exeName string)
src/helpers/github.go:128
↓ 2 callersFunctionbuildScript
(sourceDir string, outputDir string, entryName string, exe string)
src/compile-scripts/main.go:54
↓ 2 callersFunctioncreateTargetDirs
(target string)
src/helpers/fs.go:87
↓ 2 callersFunctiondownloadGithubReleaseFile
(outDir, ghURL, pattern string)
src/helpers/github.go:81
↓ 2 callersFunctionentriesByKey
(entries []objectEntry)
src/helpers/json-patch.go:70
↓ 2 callersFunctionexecPsCommand
(command string)
src/helpers/env.go:19
↓ 2 callersFunctionfilterLLMModalities
(modalities []string)
src/helpers/opencode/fetch.go:22
↓ 2 callersFunctionfindExecutable
(name string)
src/scripts/msys-git-patch/main.go:54
↓ 2 callersFunctionformatTimeForCalendarTrigger
(hour int, minute int)
src/helpers/windows-tasks.go:154
↓ 2 callersFunctiongetCodeBasedRoot
(bin string)
src/scripts/clean-code-snippets/main.go:31
↓ 2 callersFunctioninheritFromParent
(path string, isSymlink bool)
src/helpers/symlink_unix.go:22
↓ 2 callersFunctioninheritOwnership
(target string, createdDirs []string)
src/helpers/symlink_unix.go:14
↓ 2 callersFunctioninstallScoopApp
(appId string)
src/scripts/scoop-install/main.go:80
↓ 2 callersFunctionisExcluded
(configExt ExtensionConfig, executable string)
src/scripts/code-ext-sync/main.go:138
↓ 2 callersFunctionisIncluded
(configExt ExtensionConfig, executable string)
src/scripts/code-ext-sync/main.go:134
↓ 2 callersFunctionisJSONObject
(raw []byte)
src/helpers/json-patch.go:426
↓ 2 callersFunctionisRunningAsAdmin
()
src/helpers/admin_unix.go:13
↓ 2 callersFunctionrenderSlackStatus
(label string, status slack.SlackStatus, launch bool)
src/scripts/slack-status/main.go:79
↓ 2 callersFunctiontick
()
src/scripts/proxy-pause/main.go:22
↓ 1 callersFunctionAddToEnvPath
(scope Scope, paths ...string)
src/helpers/env.go:58
↓ 1 callersFunctionCopyFile
(source string, target string)
src/helpers/fs.go:13
↓ 1 callersFunctionFetchModelsDotDev
()
src/helpers/opencode/fetch.go:121
↓ 1 callersFunctionFetchOpenrouterModels
(auth AuthConfig)
src/helpers/opencode/fetch.go:114
↓ 1 callersFunctionGetBrewTaps
(brewFilePath string)
src/helpers/brew.go:8
↓ 1 callersFunctionGetCurrentGitBranch
()
src/helpers/git.go:22
↓ 1 callersFunctionGetCurrentGitRemote
()
src/helpers/git.go:36
↓ 1 callersFunctionGetGitRemoteHTTPUrl
(remote string)
src/helpers/git.go:50
↓ 1 callersFunctionGetGitRemoteUrlOrExit
(remote string)
src/helpers/git.go:105
↓ 1 callersFunctionGetMsysApps
()
src/helpers/apps.go:41
↓ 1 callersFunctionGetScoopConfigSrcMap
(configs []helpers.ScoopAppConfig)
src/helpers/scoop/config.go:20
↓ 1 callersFunctionGetSlackRuntimePath
()
src/helpers/slack/runtime.go:19
↓ 1 callersFunctionGetUpgradeablePackages
()
src/helpers/winget/packages.go:14
↓ 1 callersFunctionOpen
(target string, options ...ExecCommandOptions)
src/helpers/open.go:9
↓ 1 callersFunctionReadConfig
(path string, options ...ReadConfigOptions)
src/helpers/config.go:20
↓ 1 callersFunctionReadConfig
()
src/helpers/opencode/config.go:13
↓ 1 callersFunctionReadEnv
(scope Scope, name string)
src/helpers/env.go:37
↓ 1 callersFunctionResolveOpencodeProvider
( providerId string, providerConfig OpencodeProviderConfig, modelsDotDevProvider ModelsDotDevProvider, openr
src/helpers/opencode/resolve.go:18
↓ 1 callersFunctionWriteGithubReleaseFile
(outDir, ghURL, pattern string)
src/helpers/github.go:109
↓ 1 callersFunctionWriteSlackStartupConfig
(config SlackStatus)
src/helpers/slack/startup-config.go:30
↓ 1 callersFunctionWriteUTF16LE
(path string, s string)
src/utils/utf.go:8
↓ 1 callersFunctionappendAddedKeys
(raw []byte, nextRaw []byte, nextLayout objectLayout, mergedByKey map[string]objectEntry)
src/helpers/json-patch.go:147
↓ 1 callersFunctionappendField
(raw []byte, nextRaw []byte, nextLayout objectLayout, field []byte)
src/helpers/json-patch.go:346
↓ 1 callersFunctionappendFieldToEmptyObject
(raw []byte, layout objectLayout, nextRaw []byte, nextLayout objectLayout, field []byte)
src/helpers/json-patch.go:359
↓ 1 callersFunctionappendFieldToNonEmptyObject
(raw []byte, layout objectLayout, field []byte)
src/helpers/json-patch.go:381
↓ 1 callersFunctionapplyModelContextCap
(model OpencodeStandardModel, contextCap int)
src/helpers/opencode/resolve.go:185
↓ 1 callersFunctionapplyReplaceOps
(raw []byte, ops []replaceOp)
src/helpers/json-patch.go:299
↓ 1 callersFunctionapplySysProcAttr
(cmd *exec.Cmd, detached bool)
src/helpers/cmd_unix.go:10
↓ 1 callersFunctionbackupIfExists
(path string)
src/scripts/msys-git-patch/main.go:62
↓ 1 callersFunctionbuildField
(nextRaw []byte, nextEntry objectEntry, mergedEntry objectEntry)
src/helpers/json-patch.go:329
↓ 1 callersFunctionbuildMergedByKey
(prev []byte, next []byte)
src/helpers/json-patch.go:51
↓ 1 callersFunctionchooseMergedValue
(prevEntry objectEntry, nextEntry objectEntry, hasNext bool, mergedEntry objectEntry)
src/helpers/json-patch.go:103
↓ 1 callersFunctioncleanupSnippets
(editor Editor)
src/scripts/clean-code-snippets/main.go:66
next →1–100 of 203, ranked by callers