Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Danielmelody/ccconfig
/ functions
Functions
54 in github.com/Danielmelody/ccconfig
⨍
Functions
54
◇
Types & classes
2
↓ 11 callers
Method
ask
(question, defaultValue = '', options = {})
ccconfig.js:271
↓ 7 callers
Function
ensureDir
* Ensure directory exists with secure permissions
ccconfig.js:141
↓ 7 callers
Function
validateConfigName
* Validate configuration name * @param {string} name - Configuration name to validate * @param {boolean} allowEmpty - Whether to allow empty names (
ccconfig.js:454
↓ 6 callers
Function
displayEnvVars
* Utility: Display environment variables with consistent formatting * @param {Object} envVars - Environment variables object * @param {boolean} mask
ccconfig.js:190
↓ 6 callers
Function
getMode
* Get current mode
ccconfig.js:561
↓ 6 callers
Function
getProfilesMap
(profiles)
ccconfig.js:67
↓ 5 callers
Method
close
()
ccconfig.js:389
↓ 5 callers
Function
ensureProfileAvailable
( name, {allowEmptyEnv = false, onEmptyProfiles, onMissingProfile, onEmptyEnv} = {})
ccconfig.js:95
↓ 5 callers
Function
loadClaudeSettings
* Load Claude Code settings.json
ccconfig.js:525
↓ 5 callers
Function
loadProfiles
* Load configuration file
ccconfig.js:491
↓ 5 callers
Function
saveProfiles
* Save configuration file
ccconfig.js:507
↓ 4 callers
Function
readEnvFile
* Read environment variable file using dotenv for proper parsing
ccconfig.js:642
↓ 4 callers
Function
requireInteractive
* Utility: Check if terminal is interactive
ccconfig.js:400
↓ 3 callers
Method
askEnvVars
(existingEnv = {})
ccconfig.js:328
↓ 3 callers
Function
displayEnvSection
* Utility: Display environment variables section for current command
ccconfig.js:412
↓ 3 callers
Function
exitGracefully
(code)
ccconfig.js:1757
↓ 3 callers
Function
initIfNeeded
* Initialize configuration file (auto-called when needed)
ccconfig.js:738
↓ 3 callers
Function
maskValue
* Utility: Mask sensitive value for display * @param {string} key - Environment variable key * @param {string|null|undefined} value - Value to mask
ccconfig.js:161
↓ 2 callers
Function
generateCompletionScript
* Generate shell completion script
ccconfig.js:1878
↓ 2 callers
Function
getCurrentProfile
* Get currently active configuration
ccconfig.js:683
↓ 2 callers
Function
list
* List all configurations
ccconfig.js:757
↓ 2 callers
Function
start
* Start Claude Code with specified profile (auto-approve mode)
ccconfig.js:1863
↓ 2 callers
Function
startClaude
* Start Claude Code with specified profile (internal implementation) * @param {string} name - Profile name * @param {Array} extraArgs - Additional a
ccconfig.js:1659
↓ 1 callers
Function
add
* Add new configuration
ccconfig.js:809
↓ 1 callers
Method
cleanupKeypressListener
()
ccconfig.js:258
↓ 1 callers
Function
completion
* Generate shell completion script
ccconfig.js:2227
↓ 1 callers
Function
current
* Display current configuration
ccconfig.js:1508
↓ 1 callers
Function
detectShellCommand
* Detect current shell and return recommended activation command
ccconfig.js:1111
↓ 1 callers
Function
detectShellConfig
* Detect shell type and config file path
ccconfig.js:1237
↓ 1 callers
Method
ensureInterface
()
ccconfig.js:218
↓ 1 callers
Function
ensureProfilesAvailable
({onEmpty} = {})
ccconfig.js:81
↓ 1 callers
Function
env
* Output environment variables (for source)
ccconfig.js:1628
↓ 1 callers
Function
fork
* Fork (copy) existing configuration
ccconfig.js:962
↓ 1 callers
Function
getActiveEnvVars
* Get currently available environment variables (automatically select source * based on mode)
ccconfig.js:660
↓ 1 callers
Function
help
* Display help information
ccconfig.js:2262
↓ 1 callers
Function
installCompletion
* Install completion script automatically
ccconfig.js:2138
↓ 1 callers
Function
isProfilesEmpty
(profiles)
ccconfig.js:77
↓ 1 callers
Function
main
()
ccconfig.js:2334
↓ 1 callers
Function
mode
* Switch/view mode
ccconfig.js:1565
↓ 1 callers
Function
remove
* Remove configuration
ccconfig.js:1044
↓ 1 callers
Function
safeStart
* Start Claude Code with specified profile (safe mode - requires permission * confirmation)
ccconfig.js:1871
↓ 1 callers
Function
saveClaudeSettings
* Save Claude Code settings.json
ccconfig.js:542
↓ 1 callers
Function
setMode
* Set mode
ccconfig.js:576
↓ 1 callers
Method
setupKeypressListener
(onDoubleEsc, onEscClear)
ccconfig.js:225
↓ 1 callers
Function
showVersion
()
ccconfig.js:2461
↓ 1 callers
Function
update
* Update existing configuration
ccconfig.js:905
↓ 1 callers
Function
updateClaudeSettings
* Update Claude Code environment variable configuration (settings mode)
ccconfig.js:589
↓ 1 callers
Function
use
* Switch configuration
ccconfig.js:1410
↓ 1 callers
Function
writeEnvFile
* Write environment variable file (env mode) * Uses dotenv-compatible format for proper handling of special characters
ccconfig.js:611
↓ 1 callers
Function
writePermanentEnv
* Write environment variables permanently to shell config file
ccconfig.js:1249
Method
constructor
()
ccconfig.js:211
Method
hasExisting
ccconfig.js:329
Function
printEnvVar
* Utility: Print environment variable value (with optional masking) * @param {string} key - Environment variable key * @param {string|null|undefined
ccconfig.js:177
Function
signalHandler
(signal)
ccconfig.js:1796