Git Product home page Git Product logo

bugout-go's Introduction

bugout-go

This repository contains the Bugout Go client library. It is also the home of the bugout command line tool.

Installation

Pre-built binaries

You can get the latest pre-built release of the bugout command line tool on the Releases page.

go get

If you are familiar with golang and have it installed, you can also get bugout using:

go get github.com/bugout-dev/bugout-go

This will install the Bugout client library in $GOPATH/src/github.com/bugout-dev/bugout-go.

It will also put the bugout command line interface in your $GOPATH/bin directory.

Using the bugout command line tool

Access tokens and the BUGOUT_ACCESS_TOKEN environment variable

Many bugout commands require you to pass a Bugout token as the -t/--token argument. You can generate an access token by logging into https://bugout.dev/account/tokens.

Once you have generated an access token, if you would like bugout to use it automatically without having to explicitly pass it using -t/--token every time, you can set it as the BUGOUT_ACCESS_TOKEN environment variable.

If BUGOUT_ACCESS_TOKEN is set and you pass a -t/--token argument, the -t/--token value takes precedence.

On a Mac or on Linux:

export BUGOUT_ACCESS_TOKEN="<access token from https://bugout.dev/account/tokens>"

On Windows:

setx BUGOUT_ACCESS_TOKEN "<access token from https://bugout.dev/account/tokens>"

Journal IDs and the BUGOUT_JOURNAL_ID environment variable

Some bugout commands require you to pass a journal ID using the -j/--journal argument. If you find yourself using these commands often, you can set the BUGOUT_JOURNAL_ID environment variable and omit -j/--journal.

If BUGOUT_JOURNAL_ID is set and you pass a -j/--journal argument, the -j/--journal value takes precedence.

On a Mac or on Linux:

export BUGOUT_JOURNAL_ID="<uuid of bugout journal>"

On Windows:

setx BUGOUT_JOURNAL_ID "<uuid of bugout journal>"

bugout-go's People

Contributors

zomglings avatar kompotkot 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.