GithubHelp home page GithubHelp logo

isabella232 / bitrise-plugin-hello-world Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitrise-io/bitrise-plugin-hello-world

0.0 0.0 0.0 12 KB

Hello world (base working example) plugin for bitrise; `bitrise :hello-world`

License: MIT License

Go 100.00%

bitrise-plugin-hello-world's Introduction

Bitrise CLI Hello World Plugin

Bitrise CLI Example Plugin.

Prints Hello World!.

How to use this Plugin

Can be run directly with the bitrise CLI, requires version 1.3.0 or newer.

First install the plugin: bitrise plugin install --source https://github.com/bitrise-tools/bitrise-plugin-hello-world/releases/download/0.9.1/bitrise-plugin-hello-world-$(uname -s)-$(uname -m) --name hello

After that, you can use it: bitrise :hello

Guidelines for Plugin Development

Plugin inputs

  • Plugin becomes informations from bitrise through BITRISE_PLUGINS_MESSAGE environment as JSON string.

    Currently bitrise informations contains bitrise version, in format: {"version":"CURRENT_BITRISE_VERSION"}

  • Also command line arguments passed to the plugin, which can be used to control Plugin behavior.

    Example: this plugin respons to: bitrise :hello requirements

Plugin outputs

  • Plugin should send informations to bitrise through os.Stdout as JSON string.

    Example: send requirements to bitrise: [{"ToolName":"bitrise","MinVersion":"1.3.0","MaxVersion":"1.3.0"}]

  • Plugin outputs and errors should printed to the STDERR

Plugin requirements

Through plugin install bitrise ask plugin for requirements (i.e.: calls 'bitrise :my_plugin requirements') and waits for answer in following JSON format:

[{"ToolName":"TOOL_NAME_1","MinVersion":"SEMANTIC_MIN_VERSION_1","MaxVersion":"SEMANTIC_MAX_VERSION_1"}, {"ToolName":"TOOL_NAME_2","MinVersion":"SEMANTIC_MIN_VERSION_2","MaxVersion":"SEMANTIC_MAX_VERSION_2"}, ...].

Currently supporting tool requirements (ToolName):

  • bitrise
  • stepman
  • envman

Notes:

  • Any missing tool (in plugin requirement list) will be skipped in check (i.e.: no requirements for this tool).
  • Any empty version (in plugin requirement list) will be skipped in check (i.e.: no requirements for this type of version).

Example:

If your plugin requires only bitrise with minimum version "1.0.0", your plugin requirement list looks like:

[{"ToolName":"bitrise","MinVersion":"1.0.0","MaxVersion":""}].

bitrise-plugin-hello-world's People

Contributors

viktorbenei 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.