Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 17, 2022 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/ba51d497b51bddb34f84e8aa60daa74e to your computer and use it in GitHub Desktop.
Save richardgrantserverless/ba51d497b51bddb34f84e8aa60daa74e to your computer and use it in GitHub Desktop.
class ServerlessPlugin {
// ...
beforeWelcome() {
this.serverless.cli.log('Hello from Serverless!');
}
welcomeUser() {
this.serverless.cli.log('Your message:');
}
displayHelloMessage() {
this.serverless.cli.log(`${this.options.message}`);
}
afterHelloWorld() {
this.serverless.cli.log('Please come again!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment