File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ This plugin provides command line interface for creating dummy job and resume.
13
13
14
14
# How to use:
15
15
16
- ## cbxjob
16
+ ## comfortjob
17
17
18
18
### All possible default params:
19
19
20
20
```
21
- wp cbxjob -generate --total=100 --status=published --is-remote=0 --is-featured=1 --is-filled=0 --salary-unit=monthly --currency=USD
21
+ wp comfortjob -generate --total=100 --status=published --is-remote=0 --is-featured=1 --is-filled=0 --salary-unit=monthly --currency=USD
22
22
```
23
23
24
24
total = number of jobs to be created.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class DummyJobGenerate extends Factory {
19
19
* @since 1.0.0
20
20
*/
21
21
public function wp_cli_register_commands () {
22
- \WP_CLI ::add_command ( 'cbxjob -generate ' , [ $ this , "run " ] );
22
+ \WP_CLI ::add_command ( 'comfortjob -generate ' , [ $ this , "run " ] );
23
23
} //end method wp_cli_register_commands
24
24
25
25
/**
@@ -106,13 +106,13 @@ public function run( $args, $assoc_args ) {
106
106
107
107
$ slugify = new Slugify ();
108
108
109
- $ existing_slugs = \Cbx \Job \Models \CBXJob ::query ()->pluck ( 'slug ' )->toArray ();
109
+ $ existing_slugs = \Comfort \Job \Models \ComfortJob ::query ()->pluck ( 'slug ' )->toArray ();
110
110
$ temp_slug = $ slugify ->slugify ( $ job ['title ' ] );
111
- $ slug = \Cbx \Job \Helpers \CBXJobHelpers ::generate_unique_slug ( $ temp_slug , $ existing_slugs );
111
+ $ slug = \Comfort \Job \Helpers \ComfortJobHelpers ::generate_unique_slug ( $ temp_slug , $ existing_slugs );
112
112
113
113
$ job ['slug ' ] = $ slug ;
114
114
115
- \Cbx \Job \Models \CBXJob ::query ()->create ( $ job );
115
+ \Comfort \Job \Models \ComfortJob ::query ()->create ( $ job );
116
116
}
117
117
}
118
118
else {
You can’t perform that action at this time.
0 commit comments