1.4.0 • Published 9 years ago

shield-study-cli v1.4.0

Weekly downloads
4
License
MPL-2.0
Repository
github
Last release
9 years ago

cli tool for Shield Studies

install

$ npm install -g shield-study-cli

Usage:

$ shield -h

  Usage: shield [options] [command]


  Commands:

    run [options] <addonDir> [variation]
    profile [options] <dir>
    init [options] <name>
    lint <dir>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Shield Studies Tutorial

How To Shield Study

Subcommand examples:

run

Run with a branch at random

$ shield run ~/aStudyAddon/ some-branch-name --prefs some.prefs.json  --  -v  -b Aurora

Choose a branch, add some prefs

$ shield run ~/aStudyAddon/ some-branch-name

Add a firstrun time, and some extra prefs

$ shield run ~/aStudyAddon/ some-branch-name --firstrun 123214232 --prefs some.prefs.json  --  -v  -b Aurora

Add some arguments to passed to jpm.

$ shield run ~/aStudyAddon/ some-branch-name --prefs some.prefs.json  --  -v  -b Aurora

pref.js

  • '+' prefs are treated as 'addon' prefs
  • all other prefs are passed through
  • prefs can be called more than once
{
  "+some.addon.pref": "abcded",
  "browser.pref":  4
}

profile

Make a new blank-ish profile, with some useful prefs.

$ shield profile some/path

Overwrite if needful.

$ shield profile --force some/path

Add some prefs

$ shield profile --prefs some.prefs  --prefs some.prefs

These are useful base profiles for debugging runs, qa, jpm, etc.

init

$ shield init -h

  Usage: init [options] <name>

  Options:

    -h, --help  output usage information
    -f --force  remove dir if exists

Clone out the template, overrwriting if needful.

$ shield init my-feature-study-addon --force

lint

TBD - lint an existing project study

Sources

inspired by:

1.4.0

9 years ago

1.3.0

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago