Skip to content

Commit

Permalink
fix: adds -n1 argument to each example that contains xargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephigenia committed Apr 20, 2019
1 parent 5afa795 commit cb9c728
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Delete a single entry

Deleting a set of entries filtered using `mite list` and unix tools:

mite list this_month --project_id 128717 --columns id --format=text | xargs -0 mite delete
mite list this_month --project_id 128717 --columns id --format=text | xargs -n1 mite delete

## Un-/Lock Entry

Expand All @@ -326,7 +326,7 @@ Unlock a single time entry

Locking all entries from the last month from a specific customer using `mite list` and `xargs`:

mite list last_month --customer_id 128171 --columns id --format=text | xargs -0 mite lock
mite list last_month --customer_id 128171 --columns id --format=text | xargs -n1 mite lock

## Users

Expand Down Expand Up @@ -394,7 +394,7 @@ list projects while setting different columns and export to csv:

use the resulting projects in another command to archive the listed projects:

mite projects --columns=id --format=text | xargs -0 mite project update --archived false
mite projects --columns=id --format=text | xargs -n1 mite project update --archived false

### Update Project

Expand All @@ -408,7 +408,7 @@ Set the note and name of a project

Archive multiple projects using xargs:

mite projects --columns id --format text | xargs -0 mite project update --archived false
mite projects --columns id --format text | xargs -n1 mite project update --archived false

## Customers

Expand Down Expand Up @@ -443,7 +443,7 @@ Archive a single customer

Archive multiple customers using xargs:

mite customers --columns id --format text | xargs -0 mite customer update --archived false
mite customers --columns id --format text | xargs -n1 mite customer update --archived false

## Services

Expand Down
2 changes: 1 addition & 1 deletion source/mite-customer-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Examples:
mite customer update --name "" 123456
Unarchive all archived customers
mite customers --columns id --archived false --format=text | xargs -0 mite customer update --archived false
mite customers --columns id --archived false --format=text | xargs -n1 mite customer update --archived false
`);
})
.action((customerId) => {
Expand Down
2 changes: 1 addition & 1 deletion source/mite-customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Examples:
mite customers --columns=name,rate
Use resulting customers to update their archived state
mite customers --search company 1 --colums=id --format=text | xargs -0 mite customer update --archived=false
mite customers --search company 1 --colums=id --format=text | xargs -n1 mite customer update --archived=false
`);
})
.parse(process.argv);
Expand Down
2 changes: 1 addition & 1 deletion source/mite-delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ program
mite delete 1283761
Delete multiple entries from a project selected by using mite list:
mite list this_month --project_id=123128 --columns id --format=text | xargs -0 mite delete
mite list this_month --project_id=123128 --columns id --format=text | xargs -n1 mite delete
`);
})
.action((timeEntryId) => {
Expand Down
2 changes: 1 addition & 1 deletion source/mite-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Examples:
The output of mite list can be forwarded to other commands using xargs. The
following example will delete all matchin entries:
mite list this_month --search="query" --columns id --format=text | xargs -0 mite delete
mite list this_month --search="query" --columns id --format=text | xargs -n1 mite delete
`);
})
.action(main)
Expand Down
2 changes: 1 addition & 1 deletion source/mite-lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Examples:
mite lock 1283761
Lock multiple entries selected by using mite list:
mite list this_month --search="query" --columns id --format=text | xargs -0 mite lock
mite list this_month --search="query" --columns id --format=text | xargs -n1 mite lock
`);
})
.action((timeEntryId) => {
Expand Down
2 changes: 1 addition & 1 deletion source/mite-project-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Examples:
mite project update --name "new name" 123456
Unarchive all archived projects
mite projects --archived false --columns id --format=text | xargs -0 mite project update --archived false
mite projects --archived false --columns id --format=text | xargs -n1 mite project update --archived false
`);
})
.action((projectId) => {
Expand Down
2 changes: 1 addition & 1 deletion source/mite-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Examples:
mite projects --format=csv > my-projects.csv
use the resulting projects in another command to archive the listed projects
mite projects --columns=id --format=text | xargs -0 mite project update --archived false
mite projects --columns=id --format=text | xargs -n1 mite project update --archived false
`);
})
.parse(process.argv);
Expand Down
2 changes: 1 addition & 1 deletion source/mite-unlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Examples:
mite unlock 1283761
Unlock multiple entries selected by using mite list:
mite list this_month --search="query" --columns id --format=text | xargs -0 mite unlock
mite list this_month --search="query" --columns id --format=text | xargs -n1 mite unlock
`);
})
.action((timeEntryId) => {
Expand Down

0 comments on commit cb9c728

Please sign in to comment.