Skip to content

Commit

Permalink
- removing debug
Browse files Browse the repository at this point in the history
- #11
  • Loading branch information
ChuckJonas committed Oct 19, 2019
1 parent 7960707 commit 56396fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ run `sfdx plugins:install force-source-clean`
## Usage

<!-- commands -->
* [`sfdx force:source:clean -x <string> [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceclean--x-string--n--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx force:source:clean [-x <string>] [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceclean--x-string--n--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)

## `sfdx force:source:clean -x <string> [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
## `sfdx force:source:clean [-x <string>] [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`

Runs 'sfdx force:source:retrieve -manifest' AND deletes any source no longer found in the org

```
USAGE
$ sfdx force:source:clean -x <string> [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel
$ sfdx force:source:clean [-x <string>] [-n] [-u <string>] [--apiversion <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand All @@ -28,10 +28,10 @@ OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-x, --manifest=manifest (required) The complete path for the
manifest (package.xml) file that
specifies the components to
retrieve.
-x, --manifest=manifest [default: manifest/package.xml] The
complete path for the manifest
(package.xml) file that specifies
the components to retrieve.
--apiversion=apiversion override the api version used for
api requests made by this command
Expand All @@ -46,7 +46,7 @@ EXAMPLES
$ sfdx force:source:clean -x manifest/package.xml --noprompt
```

_See code: [lib/commands/force/source/clean.js](https://github.com/ChuckJonas/force-source-clean/blob/v0.0.3/lib/commands/force/source/clean.js)_
_See code: [lib/commands/force/source/clean.js](https://github.com/ChuckJonas/force-source-clean/blob/v0.0.5/lib/commands/force/source/clean.js)_
<!-- commandsstop -->


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "force-source-clean",
"description": "SFDX plugin which performs the 'force:source:retrieve --manifest' command but removes stale files",
"version": "0.0.4",
"version": "0.0.5",
"author": "Charlie Jonas @ChuckJonas",
"bugs": "https://github.com/ChuckJonas/force-source-clean/issues",
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/force/source/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Org extends SfdxCommand {
];

protected static flagsConfig = {
manifest: flags.string({ char: 'x', description: messages.getMessage('manifestFlagDescription'), required: true }),
manifest: flags.string({ char: 'x', description: messages.getMessage('manifestFlagDescription'), default: path.join('manifest', 'package.xml') }),
noprompt: flags.boolean({ char: 'n', description: messages.getMessage('noPromptFlagDescription') })
};

Expand Down Expand Up @@ -150,7 +150,6 @@ function spawnPromise({ cmd, args, options, onStdOut, onStdErr }: SpawnPromiseAr
}

function markContents(targetDir: string, ignore: Ignore) {
console.log(targetDir);
fs.readdir(targetDir, (err, files) => {
files.forEach((file, index) => {
fs.stat(path.join(targetDir, file), (err, stat) => {
Expand Down

0 comments on commit 56396fd

Please sign in to comment.