Skip to content

Commit 90b6f16

Browse files
authored
Publish 0.8.0 (#19)
1 parent a0fe89d commit 90b6f16

4 files changed

Lines changed: 34 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pluginify"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

README.md

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,29 @@ This is a [Spin](https://developer.fermyon.com/spin/index) plugin that helps wit
44

55
## Prerequisites
66

7-
* [Rust](https://www.rust-lang.org/tools/install)
7+
* [Rust](https://www.rust-lang.org/tools/install) if building from source
88
* [Spin](https://developer.fermyon.com/spin/install)
99

10-
## Installation
10+
# Installation
11+
12+
Latest release:
13+
14+
```bash
15+
spin plugins install pluginify
16+
```
17+
18+
From source:
1119

1220
```bash
13-
cargo run -r -- --install
21+
git checkout https://github.com/itowlson/spin-pluginify
22+
cd spin-pluginify
23+
cargo build --release
24+
./target/release/pluginify --install
1425
```
1526

16-
## Usage
27+
# Usage
1728

18-
### Preparation
29+
## Preparation
1930

2031
For your plugin, create a `spin-pluginify.toml` file with the following content:
2132

@@ -31,18 +42,24 @@ assets = [ "path/to/asset/1", "path/to/asset/2" ]
3142

3243
You can find examples in this repo and in https://github.com/fermyon/spin-trigger-sqs.
3344

34-
### Updating
35-
36-
When you have a new build of your plugin ready:
45+
## Packaging and installing your plugin
3746

38-
* Run `spin pluginify`
39-
* It should create or update a `<PLUGIN-NAME>.tar.gz` file and a `<PLUGIN-NAME>.json` manifest
40-
* Run `spin plugins install --file <PLUGIN-NAME>.json --yes`
47+
When you have a new build of your plugin ready, run:
4148

42-
If you want to save keystrokes, you can use `spin pluginify --install` to do both steps at once.
49+
```bash
50+
spin pluginify --install
51+
```
4352

4453
Your plugin should then be installed in Spin and ready to test.
4554

46-
## Troubleshooting
55+
Alternatively, you can just package by running `spin pluginify`. This creates (or updates) a `<PLUGIN-NAME>.tar.gz` file and a `<PLUGIN-NAME>.json` manifest. You can then run `spin plugins install --file <PLUGIN-NAME>.json --yes` to install that package into Spin.
56+
57+
## "I want it NOW" mode
58+
59+
To install an executable as a Spin plugin without creating a `spin-pluginify.toml`, run `spin pluginify --immediate <PATH/TO/EXECUTABLE> --install`.
60+
61+
(This is great for one-off experiments, but if you're iterating on the plugin then create a `spin-pluginify.toml` and save yourself typing the path all the time eh.)
62+
63+
# Troubleshooting
4764

48-
Error handling is non-existent right now so, uh, sorry.
65+
Error handling is a bit patchy at the moment. Please raise an issue if you find an error which is cryptic, or panicky, or shouldn't be an error at all!

spin-pluginify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "pluginify"
22
description = "Package Spin plugins for faster iteration"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
spin_compatibility = ">=0.7"
55
license = "Apache-2.0"
66
package = "./target/release/pluginify"

0 commit comments

Comments
 (0)