Skip to content

Commit

Permalink
Removed "packagesPrefix" option from CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Aug 9, 2017
1 parent 92f66f6 commit d95291a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ CLI options:
--scope Restricts the command to packages which names match the given glob pattern.
Default: null
--packages-prefix The common name of the packages. The prefix will be removed from packages' names in order to
save space, e.g. `mgit status` prints a table with the statuses of all packages.
Full names of packages aren't needed so we can cat the names.
Default: null
```

Expand Down Expand Up @@ -273,6 +267,9 @@ mgit status
mgit st
```

In order to save space in your terminal, you can define the `packagesPrefix` option in your configuration file.
The prefix will be removed from packages' names. Full names of packages aren't needed so we can cat the names.

### diff

Prints changes from packages where something has changed.
Expand Down
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ const cli = meow( `
--scope Restricts the command to packages which names match the given glob pattern.
Default: null
--packages-prefix The common name of the packages. The prefix will be removed from packages' names in order to
save space, e.g. 'mgit status' prints a table with the statuses of all packages.
Full names of packages aren't needed so we can cat the names.
Default: null
`, {
alias: {
Expand Down
5 changes: 1 addition & 4 deletions lib/utils/getoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ module.exports = function cwdResolver( callOptions, cwd ) {
resolverTargetDirectory: 'git',
resolverDefaultBranch: 'master',
ignore: null,
scope: null,
packagesPrefix: null
scope: null
};

if ( fs.existsSync( mgitJsonPath ) ) {
Expand Down Expand Up @@ -69,6 +68,4 @@ module.exports = function cwdResolver( callOptions, cwd ) {
* @property {String|null} [ignore=null] Ignores packages with names matching the given glob.
*
* @property {String|null} [scope=null] Restricts the scope to package names matching the given glob.
*
* @property {String|null} [packagesPrefix=null] The common name of the packages.
*/
12 changes: 4 additions & 8 deletions tests/utils/getoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ describe( 'utils', () => {
resolverTargetDirectory: 'git',
resolverDefaultBranch: 'master',
scope: null,
ignore: null,
packagesPrefix: null
ignore: null
} );
} );

Expand All @@ -55,8 +54,7 @@ describe( 'utils', () => {
resolverTargetDirectory: 'git',
resolverDefaultBranch: 'master',
scope: null,
ignore: null,
packagesPrefix: null
ignore: null
} );
} );

Expand All @@ -76,8 +74,7 @@ describe( 'utils', () => {
resolverTargetDirectory: 'git',
resolverDefaultBranch: 'master',
scope: null,
ignore: null,
packagesPrefix: null
ignore: null
} );
} );

Expand All @@ -100,8 +97,7 @@ describe( 'utils', () => {
resolverTargetDirectory: 'git',
resolverDefaultBranch: 'master',
scope: null,
ignore: null,
packagesPrefix: null
ignore: null
} );
} );
} );
Expand Down

0 comments on commit d95291a

Please sign in to comment.