pluggable-cli-deno/manifest.yml

53 lines
2.2 KiB
YAML
Raw Normal View History

2022-02-12 01:47:23 -06:00
_version: '20220212062110'
plugins:
echo:
2022-02-12 02:12:02 -06:00
remote: 'https://git.lyte.dev/lytedev/echo-cli-plugin'
2022-02-12 01:47:23 -06:00
run: '{plugin_dir}/echo.sh'
2022-02-12 02:05:58 -06:00
# this is the default installCommand, so we don't really need to specify it
installCommand: ['git', 'clone', '{remote}', '{plugin_dir}']
2022-02-12 03:08:54 -06:00
preInstallCommand: ['bash', '-c', 'echo "is this thing on?"']
# postInstallCommand:
2022-02-12 02:05:58 -06:00
# none of these work, but wouldn't be tough to implement if needed
2022-02-12 01:47:23 -06:00
# may also want to checkout a provided version tag and copy contents
# and only clone to a "plugin-repos" dir
# might want to omit git history, too?
shutup:
2022-02-12 02:12:02 -06:00
remote: 'https://git.lyte.dev/lytedev/shutup-cli-plugin'
2022-02-12 01:47:23 -06:00
run: '{plugin_dir}/shutup.sh'
2022-02-12 03:08:54 -06:00
'go-hello-world':
preInstallCommand:
# install golang using asdf
# if we wanted, we could have an asdf plugin and install it here like
# poc-cli install-plugin asdf
# and it would make sure the shell and everything is ready to go
- 'bash'
- '-c'
- 'asdf plugin-add golang; asdf install golang latest; asdf global golang latest; curl -o /tmp/hello-world.go https://raw.githubusercontent.com/mmcgrana/gobyexample/master/examples/hello-world/hello-world.go'
installCommand:
- bash
- '-c'
- 'cd {plugin_dir} && go build /tmp/hello-world.go'
run: '{plugin_dir}/hello-world'
'elixir-hello-jason':
preInstallCommand:
# obviously, installing elixir and erlang through asdf can be a little
# hairy in the real world, but a contrived example suits this
# proof-of-concept just fine
- 'bash'
- '-c'
- 'asdf plugin-add erlang; asdf plugin-add elixir; asdf install erlang latest; asdf install elixir latest; asdf global erlang latest; asdf global elixir latest'
installCommand:
- bash
- '-c'
# remember, instead of installing :jason, we might install internal libraries!
- 'printf "%s\n%s" "Mix.install([:jason])" "IO.puts(Jason.encode!(%{hello: :world}))" > {plugin_dir}/script.exs'
run:
- elixir
- '{plugin_dir}/script.exs'
# in the real world, most of these scripts would probably live within the plugin themselves to be easier to write