Code Monkey home page Code Monkey logo

bazel-fast-fail-slack-notify's Introduction

Template: aspect-cli plugin in Go

This repo provides the fastest way to make a plugin for the aspect cli.

It contains a plugin written in Go, with a GitHub actions CI/CD pipeline to release it.

More details about aspect cli plugins is on the plugin documentation

Instructions

Create a new repo with the green "Use this template" button above. Then in your repo...

  1. Find-and-replace hello-world with your plugin name.
  2. Find-and-replace github.com/aspect-build/aspect-cli-plugin-template with the name of your Go module. See https://go.dev/doc/modules/developing
  3. Start coding on your features!
  4. Delete everything above the SNIP line below, and replace it with info about your plugin.
  5. Once satisfied, create a tag vX.Y.Z and push it to trigger the GitHub Action that will create the release.
  6. Navigate to the releases tab of your repository, you'll find a draft release based on your tag. Publish it to complete the release process.
  7. Want to share your plugin with other developers? Consider adding it to the plugin catalog, by sending a PR editing the plugins.json file located in the public Aspect CLI plugins registry.

Local development

  1. Run bazel build :dev to build your plugin
  2. In an existing codebase using aspect-cli, add the plugin like following:
# .aspect/cli/config.yaml
plugins:
  - name: <your-plugin-name>
    from: <relative path to the plugin>/bazel-bin/plugin
  1. You're all set, just remember to build the :dev target whenever you change code in the plugin.

Working with BEP events

If you want to work with BEPEventCallback(event *buildeventstream.BuildEvent) error but you're not very familiar with the event structures, you can run the Bazel command you're looking to augment with the --build_event_json_file=bep.json and inspect the resulting bep.json to get a rough understanding about where you should look into.

See also the Bazel user guide page about BEP.

---------- %< SNIP %< ------------

My Plugin

This is a plugin for the Aspect CLI.

Demo

TODO: Consider showing off your new plugin with a little animated demo of your terminal! We highly recommend asciinema.

bazel-fast-fail-slack-notify's People

Contributors

alexeagle avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.