@oclif/plugin-command-snapshot
generates and compares OCLIF plugins snapshot files
Last updated a month ago by amphro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @oclif/plugin-command-snapshot 
SYNC missed versions from official npm registry.

@oclif/plugin-command-snapshot

Generates and compares OCLIF plugins snapshot files

oclif Version Downloads/week License

Usage

This plugin is used to take snapshot of commands and flags in OCLIF plugins. These snapshots can be used to enforce a deprecation policy or to keep track of changes.

To include it in your plugin, add it to the devPlugins section in your package.json.

"oclif": {
    ...
    "devPlugins": [
      "@oclif/plugin-command-snapshot"
      ...
    ]

Use the snapshot:generate command in your development process.

# generates a snapshot file that has a list or commands and flags in the current CLI or plugin
$ ./bin/run snapshot:generate

Use the snapshot:compare command in your continuos integration. This command will fail if changes are detected. The snapshot file should be updated and committed to the repository when legitimate changes are made.

# compare the current CLI or plugin commands and flags with a snapshot file to identify changes
$ ./bin/run snapshot:compare

Current Tags

  • 1.1.0                                ...           latest (a month ago)

2 Versions

  • 1.1.0                                ...           a month ago
  • 1.0.0                                ...           7 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 11
Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |