@spryker-lerna/collect-uncommitted

5.1.0 • Public • Published

@lerna/collect-uncommitted

Check git working tree status and collect uncommitted changes for display

Usage

const { collectUncommitted } = require("@lerna/collect-uncommitted");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  log: require("npmlog"),
};

(async () => {
  try {
    const results = await collectUncommitted(options);
    console.log(`Uncommitted changes on CWD ${options.cwd}: ${results.join("\n")}`);
  } catch (err) {
    console.error(err.message);
  }
})();

Install lerna for access to the lerna CLI.

Readme

Keywords

Package Sidebar

Install

npm i @spryker-lerna/collect-uncommitted

Weekly Downloads

3

Version

5.1.0

License

MIT

Unpacked Size

7.26 kB

Total Files

5

Last publish

Collaborators

  • spryker-bot