* Renders a logo to the console. * @param type string | 'serverless-framework'
({ postfix = '' } = {})
| 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. |
no test coverage detected