GithubHelp home page GithubHelp logo

tau-cli's Introduction

tau-cli

Release License Go Report Card GoDoc Discord

tau is a command line tool for interacting with a Taubyte-based Cloud Network. Similar to the web console, it allows you to create and manage projects, applications, resources, and more.

Installation

Fetch and Install with Go

go install github.com/taubyte/tau-cli@latest

You can rename tau-cli to tau or create an alias.

Clone and Build

git clone https://github.com/taubyte/tau-cli
cd tau
go build -o ~/go/bin/tau

Offline version (Optional)

Fails faster if exploring an unregistered project

go build -o ~/go/bin/otau -tags=localAuthClient

Login

tau login - opens selection with default already selected - simply logs in if only default available - will open new if no profiles found tau login --new for new

  • --set-default for making this new auth the default tau login <profile-name> for using a specific profile

Environment Variables:

  • TAUBYTE_PROJECT Selected project
  • TAUBYTE_PROFILE Selected profile
  • TAUBYTE_APPLICATION Selected application
  • TAUBYTE_CONFIG (default: ~/tau.yaml) Config location
  • TAUBYTE_SESSION (default: /tmp/tau-<shell-pid>) Session location
  • DREAM_BINARY (default: $GOPATH/dream) Dream binary location

Testing

All tests

go test -v ./...

Hot reload tests

$ cd tests

Edit air config cmd = "go test -v --run <Function|Database|...> [-tags=no_rebuild]

(Optional) Add debug: true, to an individual test

$ air

Running Individual Prompts

go run ./prompts/internal

Measuring Coverage:

Calculate coverage for all packages

go test -v ./... -tags=localAuthClient,projectCreateable,localPatrick,cover,noPrompt -coverprofile cover.out -coverpkg ./...

Display coverage for all packages

go tool cover -html=cover.out
go tool cover -func=cover.out

Documentation

For documentation head to tau.how

tau-cli's People

Contributors

skelouse avatar tafseer-khan avatar arontaubyte avatar samyfodil avatar taubyte0 avatar kattt999 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.