Skip to content

Commit ed6a1fb

Browse files
committed
Merge branch 'master' into addRemoteCloning
2 parents 3680bd6 + 20eb15a commit ed6a1fb

13 files changed

+1307
-828
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,21 @@ This package has been developed by H&H|Digital, an Australian botique developer.
2727

2828
## Installation
2929

30-
Run the installer to automatically download the latest version.
30+
Via commmand line:
3131

32-
`bash <(curl -s https://hnhdigital-os.github.io/mysql-helper/install)`
32+
`bash <(curl -s https://hnhdigital-os.github.io/mysql-helper/builds/install)`
33+
34+
Download the latest build:
35+
36+
`curl -o ./mysql-helper -LSs https://github.com/hnhdigital-os/mysql-helper/raw/master/builds/fs-tasker`
37+
`chmod 755 ./mysql-helper`
38+
39+
Move it local bin:
40+
41+
`mv ./fs-tasker /usr/local/bin/fs-tasker`
3342

3443
Run the install command to run automatically dependency installation.
35-
NOTE: This currently only works on Debian (uses apt-get). See above requirements to manually install.
44+
NOTE: This currently only works on Debian (uses apt-get). See the software requirements to manually install.
3645

3746
`mysql-helper install`
3847

@@ -50,12 +59,12 @@ This tool provides a self-update mechanism. Simply run the self-update command.
5059

5160
```
5261
USAGE: mysql-helper <command> [options] [arguments]
53-
configure Run the configuration wizard.
54-
self-update Check if there is a new version and update.
55-
self-update [--tag=?]
56-
Update this binary to a specific tagged release.
57-
self-update [--check-release=?]
58-
Returns the current binary version.
62+
backup Backup a specific local database
63+
clone Clone database from one to another
64+
configure Configure profiles and connections
65+
display List databases available to this connection
66+
install Install system requirements
67+
restore Restore a specific local database
5968
```
6069

6170
## Contributing

app/Commands/BackupCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class BackupCommand extends Command
3838
*/
3939
public function handle()
4040
{
41+
if (!$this->checkInstalledPackages()) {
42+
return;
43+
}
44+
4145
$this->loadExistingProfiles();
4246

4347
// Select profile.

app/Commands/CloneCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CloneCommand extends Command
3434
*
3535
* @var string
3636
*/
37-
protected $description = 'Clone another database';
37+
protected $description = 'Clone database from one to another';
3838

3939
/**
4040
* Source database type.
@@ -60,6 +60,10 @@ class CloneCommand extends Command
6060
*/
6161
public function handle()
6262
{
63+
if (!$this->checkInstalledPackages()) {
64+
return;
65+
}
66+
6367
$this->loadExistingProfiles();
6468

6569
// Source mode.

0 commit comments

Comments
 (0)