0.16.1-alpha.21 • Published 1 month ago

gobot-kopia v0.16.1-alpha.21

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Gobot

npm.io npm.io npm.io npm.io

kopia via npm

This package allows you to use kopia as an npm dependency.

Part of the Gobot project.

Usage

Quick run

npx gobot kopia --version

Quick use

npm i gobot
import { gobot } from 'gobot'
const bot = await gobot(`kopia`)
bot.run([`--version`])

Basic version locking

npm i gobot-kopia

With gobot-kopia present, Gobot will default to the kopia version corresponding to the gobot-kopia version you installed. Now you can use kopia as a real dependency.

import { gobot } from 'gobot'
const bot = await gobot(`kopia`)
bot..run([`--version`])

Locking to a specific version

The gobot-kopia package version always mirrors the underlying kopia version:

npm i gobot-kopia@0.16.1

Override the default version imposed by this package

In rare cases, you may want to intentionally run a different version of kopia even though gobot-kopia is installed.

// Run a specific version (override)
const bot = await gobot(`kopia`, { version: `0.16.1` })
bot.run([`--version`])

// Or the latest version (override)
const bot = await gobot(`kopia`, { version: `*` })
bot.run([`--version`])

Pass environment variables

import { gobot } from 'gobot'
const bot = await gobot(`kopia`, {
  env: process.env, // This is not always necessary, but some apps do need it
})
bot.run([`--version`])

Install globally for CLI access

Exactly one gobot-kopia can be installed globally. It will receive a bin alias:

npm i -g gobot-kopia
kopia --help

# Upgrade to  @latest or any version
npm i -g gobot-kopia@latest

CLI

gobot-kopia comes with a bin shortcut for CLI usage.

kopia [options]

kopia (https://kopia.io) runner for Gobot (https://github.com/benallfree/gobot)

Options

NameDefaultDiscussion
--g-vtrueShow informational output
--g-vvfalseShow even more output
--g-vvvfalseShow even more output
--g-cache-pathhost specificThe cache path to use
--g-use-version*Run a specific binary version (format: x.y.z semver or x.y.* semver range)
--g-oshost specificSpecify OS/Platform
--g-archhost specificSpecify OS/Platform

API

Full API docs

Sample project

View the kopia sample project on github.

Try Gobot's other apps

Gobot has a growing list (currently 52) of official apps. Have you tried them all?

Getting Help

Join our Discord community.

Why?

If you are writing a nodejs application that depends upon binaries being present (like PocketHost does), you can add this package as a dependency and execute the binary via CLI or programmatically. This package will make sure your desired external binaries are always available.

If you just want to grab a binary quickly for your own use, npx gobot@latest <app> is quite a bit easier than manually downloading zips and installing binaries in shell paths. Gobot handles it all for you effortlessly.

Adding your app to the Gobot registry

We want to add native support for lots of binary apps!

If you use publish statically linked binary releases on github, you are already 98% compatible with Gobot. In fact, Gobot may already know how to work with it.

To see what initial support looks like:

npx gobot inspect <user>/<repo>

This will index all the releases from your repo and show you exactly what Gobot sees.

If you see everything you expect, you're golden. If things are missing, it may mean some custom programming. Either way, jump on Discord and let us know your results.

If you have the flexibility or are starting a new project, make sure your release names follows these rules:

  • Ends in .zip, .tgz, .tar.gz, .bz2
  • Include the version (semver recommended)
  • Include the platform (freebsd, darwin, linux, win32)
  • Include the architecture (arm64, x64, ia32, arm)

Note: GoReleaser is a great option if you're publish a Go-based project.

Contributing

We could use help testing and making sure this works across lots of platforms.

To test a build locally:

pnpm test

All known releases

gobot-kopia versions mirror kopia versions. Gobot knows about 71 releases of kopia:

Versionfreebsddarwinlinuxwin32
0.16.1arm64/x64/armarm64/x64arm64/x64/armx64
0.16.0arm64/x64/armarm64/x64arm64/x64/armx64
0.15.0arm64/x64/armarm64/x64arm64/x64/armx64
0.14.1arm64/x64/armarm64/x64arm64/x64/armx64
0.14.0arm64/x64/armarm64/x64arm64/x64/armx64
0.13.0arm64/x64/armarm64/x64arm64/x64/armx64
0.13.0-rc2arm64/x64/armarm64/x64arm64/x64/armx64
0.13.0-rc1arm64/x64/armarm64/x64arm64/x64/armx64
0.12.1arm64/x64/armarm64/x64arm64/x64/armx64
0.12.0arm64/x64/armarm64/x64arm64/x64/armx64
0.11.3arm64/x64/armarm64/x64arm64/x64/armx64
0.11.2arm64/x64/armarm64/x64arm64/x64/armx64
0.11.1arm64/x64/armarm64/x64arm64/x64/armx64
0.11.0arm64/x64/armarm64/x64arm64/x64/armx64
0.10.7arm64/x64/armarm64/x64arm64/x64/armx64
0.10.6arm64/x64/armarm64/x64arm64/x64/armx64
0.10.5arm64/x64/armarm64/x64arm64/x64/armx64
0.10.4arm64/x64/armarm64/x64arm64/x64/armx64
0.10.3arm64/x64/armarm64/x64arm64/x64/armx64
0.10.2arm64/x64/armarm64/x64arm64/x64/armx64
0.10.1arm64/x64/armarm64/x64arm64/x64/armx64
0.10.0arm64/x64/armarm64/x64arm64/x64/armx64
0.9.8arm64/x64/armarm64/x64arm64/x64/armx64
0.9.7arm64/x64/armarm64/x64arm64/x64/armx64
0.9.6arm64/x64/armarm64/x64arm64/x64/armx64
0.9.5arm64/x64/armarm64/x64arm64/x64/armx64
0.9.4arm64/x64/armarm64/x64arm64/x64/armx64
0.9.3arm64/x64/armarm64/x64arm64/x64/armx64
0.9.2arm64/x64/armarm64/x64arm64/x64/armx64
0.9.1arm64/x64/armarm64/x64arm64/x64/armx64
0.9.0arm64/x64/armarm64/x64arm64/x64/armx64
0.9.0-rc4arm64/x64/armarm64/x64arm64/x64/armx64
0.9.0-rc3arm64/x64/armarm64/x64arm64/x64/armx64
0.9.0-rc2arm64/x64/armarm64/x64arm64/x64/armx64
0.9.0-rc1arm64/x64/armarm64/x64arm64/x64/armx64
0.8.4arm64/x64arm64/x64/armx64
0.8.3arm64/x64arm64/x64/armx64
0.8.2arm64/x64arm64/x64/armx64
0.7.3x64arm64/x64/armx64
0.7.2x64arm64/x64/armx64
0.7.1x64arm64/x64/armx64
0.7.0x64arm64/x64/armx64
0.7.0-rc2x64arm64/x64/armx64
0.7.0-rc1x64arm64/x64/armx64
0.6.4x64arm64/x64/armx64
0.6.3x64arm64/x64/armx64
0.6.2x64arm64/x64/armx64
0.6.1x64arm64/x64/armx64
0.6.0x64arm64/x64/armx64
0.6.0-rc4x64arm64/x64/armx64
0.6.0-rc3x64arm64/x64/armx64
0.6.0-rc2x64arm64/x64/armx64
0.6.0-rc1x64arm64/x64/armx64
0.5.2x64arm64/x64/armx64
0.5.1x64arm64/x64/armx64
0.5.0x64arm64/x64/armx64
0.5.0-rc1x64arm64/x64/armx64
0.4.0x64arm64/x64/armx64
0.3.0x64arm64/x64/armx64
0.3.0-rc6x64arm64/x64/armx64
0.3.0-rc5x64arm64/x64/armx64
0.3.0-rc4x64arm64/x64/armx64
0.3.0-rc3x64arm64/x64/armx64
0.3.0-rc1x64arm64/x64/armx64
0.3.0-pre9x64arm64/x64/armx64
0.3.0-pre8x64arm64/x64/armx64
0.3.0-pre6x64arm64/x64/armx64
0.3.0-pre5x64arm64/x64/armx64
0.3.0-pre4x64arm64/x64/armx64
0.3.0-pre2x64arm64/x64/armx64
0.3.0-pre10x64arm64/x64/armx64
0.16.1-alpha.21

1 month ago

0.15.0-alpha.20

1 month ago

0.15.0-alpha.19

2 months ago

0.15.0-alpha.18

2 months ago

0.15.0-alpha.17

2 months ago

0.15.0-alpha.16

2 months ago

0.15.0-alpha.15

2 months ago

0.15.0-alpha.14

2 months ago