Skip to content

Commit 3f87321

Browse files
committed
Added API definition and improved docs
- Added API definition (./docs/API-1.0.md) - Fixed typos and improved docs.
1 parent 7f2a1a8 commit 3f87321

File tree

11 files changed

+713
-11
lines changed

11 files changed

+713
-11
lines changed

Changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.0.1 28-Mar-2018
2+
- Fixed Issue #5 "Single deployment doesn't show the location of the
3+
sandbox"
4+
- Added API definition (./docs/API-1.0.md)
5+
- Added test for Issue #5
6+
- Fixed typos and improved docs.
17
1.0.0 26-Mar-2018
28
- General Availability.
39
- Fixed bug with single deployment and --force. On the second deployment,

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To use a tarball, you must first run the **unpack** command, which will unpack t
3333

3434
For example:
3535

36-
$ dbdeployer --unpack-version=8.0.4 unpack mysql-8.0.4-rc-linux-glibc2.12-x86_64.tar.gz
36+
$ dbdeployer unpack mysql-8.0.4-rc-linux-glibc2.12-x86_64.tar.gz
3737
Unpacking tarball mysql-8.0.4-rc-linux-glibc2.12-x86_64.tar.gz to $HOME/opt/mysql/8.0.4
3838
.........100.........200.........292
3939

@@ -45,7 +45,7 @@ For example:
4545
The program doesn't have any dependencies. Everything is included in the binary. Calling *dbdeployer* without arguments or with '--help' will show the main help screen.
4646

4747
$ dbdeployer --version
48-
dbdeployer version 1.0.0
48+
dbdeployer version 1.0.1
4949

5050

5151
$ dbdeployer -h
@@ -71,7 +71,7 @@ The program doesn't have any dependencies. Everything is included in the binary.
7171
--config string configuration file (default "$HOME/.dbdeployer/config.json")
7272
-h, --help help for dbdeployer
7373
--sandbox-binary string Binary repository (default "$HOME/opt/mysql")
74-
--sandbox-home string Sandbox deployment direcory (default "$HOME/sandboxes")
74+
--sandbox-home string Sandbox deployment directory (default "$HOME/sandboxes")
7575
--version version for dbdeployer
7676

7777
Use "dbdeployer [command] --help" for more information about a command.
@@ -537,3 +537,13 @@ The lock can also be reverted using
537537

538538
$ dbdeployer admin unlock sandbox_name
539539

540+
## Semantic versioning
541+
542+
As of version 1.0.0, dbdeployer adheres to the principles of [semantic versioning](https://semver.org/). A version number is made of Major, Minor, and Revision. When changes are applied, the following happens:
543+
544+
* Backward-compatible bug fixes increment the **Revision** number.
545+
* Backward-compatible new features increment the **Minor** number.
546+
* Backward incompatible changes (either features or bug fixes that break compatibility with the API) increment the **Major** number.
547+
548+
The starting API is defined in [API-1.0.md](https://github.com/datacharmer/dbdeployer/blob/master/docs/API-1.0.md).
549+

cmd/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Use "dbdeployer defaults show" to see which values are available`,
116116
defaultsExportCmd = &cobra.Command{
117117
Use: "export filename",
118118
Short: "Export current defaults to a given file",
119-
Long: `Saves current defaults to a fileer-defined file`,
119+
Long: `Saves current defaults to a user-defined file`,
120120
Run: ExportDefaults,
121121
}
122122

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func init() {
8080
cobra.OnInitialize(checkDefaultsFile)
8181
// spew.Dump(rootCmd)
8282
rootCmd.PersistentFlags().StringVar(&defaults.CustomConfigurationFile, "config", defaults.ConfigurationFile, "configuration file")
83-
set_pflag(rootCmd,"sandbox-home", "", "SANDBOX_HOME", defaults.Defaults().SandboxHome, "Sandbox deployment direcory", false)
83+
set_pflag(rootCmd,"sandbox-home", "", "SANDBOX_HOME", defaults.Defaults().SandboxHome, "Sandbox deployment directory", false)
8484
set_pflag(rootCmd,"sandbox-binary", "", "SANDBOX_BINARY", defaults.Defaults().SandboxBinary, "Binary repository", false)
8585

8686
rootCmd.InitDefaultVersionFlag()

cmd/unpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func UnpackTarball(cmd *cobra.Command, args []string) {
6969
os.Exit(1)
7070
}
7171

72-
fmt.Printf("Unpacking tarball %s to %s\n", tarball, destination)
72+
fmt.Printf("Unpacking tarball %s to %s\n", tarball, common.ReplaceLiteralHome(destination))
7373
verbosity_level := unpack.VERBOSE
7474
err := unpack.UnpackTar(tarball, Basedir, verbosity_level)
7575
if err != nil {

0 commit comments

Comments
 (0)