GithubHelp home page GithubHelp logo

sakka2 / store-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from screwdriver-cd/store-cli

0.0 1.0 0.0 145 KB

CLI for communicating with store

Home Page: https://cd.screwdriver.cd/pipelines/1654/events

License: Other

Go 100.00%

store-cli's Introduction

store-cli

CLI for communicating with the Screwdriver store.

$ go run store-cli.go 
NAME:
   store - get, set or remove items in the Screwdriver store

USAGE:
   [options]

VERSION:
   0.0.0

COMMANDS:
     get      Get a new item from the store
     set      Put a new item to the store
     remove   Remove an existing item from the store
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --scope value  Scope of command. For example: event, build, pipeline
   --type value   Type of the command. For example: cache, artifacts, steps (default: "stable")
   --help, -h     show help
   --version, -v  print the version

COPYRIGHT:
   (c) 2018 Yahoo Inc.

Build cache

To use the store-cli tool for caching files and folders in your Screwdriver builds, you can specify --type=cache and the scope of your cache.

Scope Access
pipeline Cache accessible to all builds in the same pipeline
event Cache accessible to all builds in the same event
job Cache accessible to all builds for the same job

For example, if you want to cache the node_modules folder within the event scope, simply run store-cli set node_modules/ --scope=event --type=cache and store-cli get node_modules/ --scope=event --type=cache (to restore the cache).

Dependency

store-cli has dependency on ZStandard (https://github.com/facebook/zstd)

To test locally in download binaries from screwdrivercd bintray and set path

  • mac => download zstd-cli-macosx binary from https://bintray.com/screwdrivercd/screwdrivercd/download_file?file_path=zstd-cli-1.4.8-macosx.tar.gz
  • linux => download zstd-cli-linux binary from https://bintray.com/screwdrivercd/screwdrivercd/download_file?file_path=zstd-cli-1.4.8-linux.tar.gz

  • store-cli's People

    Contributors

    catto avatar d2lam avatar jacobtolar avatar jeffreytolar avatar jithine avatar klu909 avatar minzcmu avatar parthasl avatar pritamstyz4ever avatar s-yoshika avatar scr-oath avatar tk3fftk avatar vnugopal avatar yoshwata avatar yuichi10 avatar

    Watchers

     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.