Skip to content

Commit

Permalink
Merge pull request #18 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
feature: add installation command
  • Loading branch information
achmadhadikurnia committed Mar 16, 2024
2 parents 49ba24d + bd20265 commit 60f81a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ You can publish the config file with:
php artisan vendor:publish --tag="siasn-simpeg-config"
```

Or, all installations can be completed with the install command:

```bash
php artisan siasn-simpeg:install
```

## Usage

### Import pegawai
Expand Down
14 changes: 13 additions & 1 deletion src/SimpegServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ public function configurePackage(Package $package): void
->hasCommand(Commands\ImportCommand::class)
->hasCommand(Commands\PullPnsDataUtamaCommand::class)
->hasCommand(Commands\PullRiwayatCommand::class)
->hasCommand(Commands\PullReferensiRefUnorCommand::class);
->hasCommand(Commands\PullReferensiRefUnorCommand::class)
->hasInstallCommand(function ($command) {
$command
->startWith(function ($command) {
$command->info('Hello, and welcome to my great laravel package!');
})
->publishConfigFile()
->askToRunMigrations()
->askToStarRepoOnGitHub('kanekescom/laravel-siasn-simpeg')
->endWith(function ($command) {
$command->info('Have a great day!');
});
});
}
}

0 comments on commit 60f81a5

Please sign in to comment.