MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getLocalShellOpts

Function getLocalShellOpts

pkg/blockcontroller/shellcontroller.go:705–715  ·  view source on GitHub ↗
(blockMeta waveobj.MetaMapType)

Source from the content-addressed store, hash-verified

703}
704
705func getLocalShellOpts(blockMeta waveobj.MetaMapType) []string {
706 if blockMeta.HasKey(waveobj.MetaKey_TermLocalShellOpts) {
707 opts := blockMeta.GetStringList(waveobj.MetaKey_TermLocalShellOpts)
708 return append([]string{}, opts...)
709 }
710 settings := wconfig.GetWatcher().GetFullConfig().Settings
711 if len(settings.TermLocalShellOpts) > 0 {
712 return append([]string{}, settings.TermLocalShellOpts...)
713 }
714 return nil
715}
716
717// for "cmd" type blocks
718func createCmdStrAndOpts(blockId string, blockMeta waveobj.MetaMapType, connName string) (string, *shellexec.CommandOptsType, error) {

Callers 1

Calls 4

GetWatcherFunction · 0.92
HasKeyMethod · 0.80
GetStringListMethod · 0.80
GetFullConfigMethod · 0.80

Tested by

no test coverage detected