MCPcopy
hub / github.com/serverless/serverless / logo

Method logo

packages/util/src/logger/index.js:929–945  ·  view source on GitHub ↗

* Renders a logo to the console. * @param type string | 'serverless-framework'

({ postfix = '' } = {})

Source from the content-addressed store, hash-verified

927 * @param type string | 'serverless-framework'
928 */
929 logo({ postfix = '' } = {}) {
930 // Stop the spinner to not collide with prompt
931 renderer.spinner.stop()
932
933 const content = renderer.style.bold(
934 `${renderer.style.title('Serverless ')}${renderer.colors.red(
935 'ϟ',
936 )}${renderer.style.title(` Framework${postfix ? ` ${postfix}` : ''}`)}`,
937 )
938 writeStdErr({
939 level: 'notice',
940 messageTokens: [content],
941 })
942
943 // Restart the spinner if it was stopped
944 renderer.spinner.start()
945 }
946
947 /**
948 * Renders the support logo to the console.

Callers 6

general.jsFile · 0.80
validateCliSchemaFunction · 0.80
runMethod · 0.80
routeNewFunction · 0.80
routeExistingComposeFunction · 0.80
routeExistingServiceFunction · 0.80

Calls 4

writeStdErrFunction · 0.85
titleMethod · 0.80
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected