Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added version command #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Added version command #2

merged 1 commit into from
Jul 4, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jul 3, 2023

It returns information about the plugin, but more importantly, it returns information on the plugin_api version:

$ go build
$ ./dummy-plugin
dummy - This is an Arduino Firmware Uploader plugin.

Usage:
  dummy-plugin [command]

Available Commands:
  cert        Certificates handling commands
  completion  Generate the autocompletion script for the specified shell
  firmware    Firmware handling commands
  help        Help about any command
  version     Return informations about this fw-updater plugin

Flags:
  -p, --address string   Port address
  -h, --help             help for dummy-plugin

Use "dummy-plugin [command] --help" for more information about a command.
$ ./dummy-plugin version
plugin_info:
    name: dummy
    version: 1.0.0
plugin_api_version: 1

If in the future we will add more functionality we could increase the plugin_api_version to maintain backward compatibility.

@cmaglie cmaglie self-assigned this Jul 3, 2023
@cmaglie cmaglie merged commit 4f3552f into main Jul 4, 2023
@cmaglie cmaglie deleted the add_version branch July 4, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.