MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / getKindExtension

Function getKindExtension

commands/action.go:688–707  ·  view source on GitHub ↗
(runtime string)

Source from the content-addressed store, hash-verified

686}
687
688func getKindExtension(runtime string) (extension string) {
689 switch strings.ToLower(runtime) {
690 case NODE_JS:
691 extension = NODE_JS_EXT
692 case PYTHON:
693 extension = PYTHON_EXT
694 case SWIFT:
695 fallthrough
696 case PHP:
697 extension = fmt.Sprintf(".%s", runtime)
698 case RUBY:
699 extension = RUBY_EXT
700 case RUST:
701 extension = RUST_EXT
702 case GO:
703 extension = GO_EXT
704 }
705
706 return extension
707}
708
709func saveCode(action whisk.Action, filename string) (err error) {
710 var code string

Callers 1

saveCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected