diff --git a/CHANGELOG b/CHANGELOG index 0827b32..08929c2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +0.0.6 + +* Added auto-completion to the deb file. +* Added set verb and quota noun to set quota resource for certain roles. +* Added JSON output as an option for all commands. + 0.0.5 * Backup and snapshot commands have now been moved to under the force subcommand as these are expensive operations diff --git a/README.md b/README.md index 9870190..209d512 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,9 @@ Use "australis [command] --help" for more information about a command. ## Status Australis is a work in progress and does not support all the features of Apache Aurora. + + +### Building debian file +From root of the repository run: + +`debuild -d -us -uc -b` \ No newline at end of file diff --git a/cmd/completion.go b/cmd/completion.go index 0d339a1..ed0704d 100644 --- a/cmd/completion.go +++ b/cmd/completion.go @@ -5,7 +5,7 @@ import ( ) var completionCmd = &cobra.Command{ - Use: "completion", + Use: "autocomplete", Short: "Create auto completion for bash.", Long: `Create auto completion bash file for australis. Auto completion file must be placed in the correct directory in order for bash to pick up the definitions. @@ -18,10 +18,12 @@ In MacOS this directory is $(brew --prefix)/etc/bash_completion.d if auto comple PersistentPreRun: func(cmd *cobra.Command, args []string) {}, //We don't need a realis client for this cmd PersistentPostRun: func(cmd *cobra.Command, args []string) {}, //We don't need a realis client for this cmd Run: func(cmd *cobra.Command, args []string) { - rootCmd.GenBashCompletionFile("australis.completion.sh") + rootCmd.GenBashCompletionFile(filename) }, } func init() { rootCmd.AddCommand(completionCmd) + + completionCmd.Flags().StringVar(&filename, "filename", "australis.completion.sh", "Path and name of the autocompletion file.") } diff --git a/cmd/root.go b/cmd/root.go index bbb7cbf..3733419 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -26,8 +26,9 @@ var logLevel string var duration time.Duration var percent float64 var count int64 +var filename string -const australisVer = "v0.0.7" +const australisVer = "v0.0.6" var monitorInterval, monitorTimeout time.Duration diff --git a/debian/australis.install b/debian/australis.install old mode 100644 new mode 100755 index 7585d5d..5d7fc37 --- a/debian/australis.install +++ b/debian/australis.install @@ -1,2 +1,5 @@ +#!/usr/bin/dh-exec + +build/australis.bash => usr/share/bash-completion/completions/australis build/australis usr/bin debian/etc/aurora/australis.yml etc/aurora diff --git a/debian/changelog b/debian/changelog index 0ff6e38..4cf42eb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +australis (0.0.6) unstable; urgency=medium + + * Added auto-completion to the deb file. + * Added set verb and quota noun to set quota resource for certain roles. + * Added JSON output as an option for all commands. + + -- Renan DelValle Wed, 05 Dec 2018 15:10:00 -0700 + australis (0.0.5) unstable; urgency=medium * Backup and snapshot commands have now been moved to under the force subcommand as these are expensive operations diff --git a/debian/rules b/debian/rules index 76e7d69..cf43dbe 100755 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,13 @@ clean: rm -rf $(CURDIR)/build + rm -rf $(CURDIR)/debian/asutralis + rm -rf $(CURDIR)/debian/australis.debhelper.log + rm -rf $(CURDIR)/debian/debhelper-build-stamp + rm -rf $(CURDIR)/debian/files + rm -rf $(CURDIR)/debian/australis.substvars override_dh_auto_build: mkdir $(CURDIR)/build - docker run --rm -v "$(CURDIR)":/go/src/github.com/rdelval/australis -w /go/src/github.com/rdelval/australis golang:1.11 go build -o build/australis \ No newline at end of file + docker run --rm -v "$(CURDIR)":/go/src/github.com/rdelval/australis -w /go/src/github.com/rdelval/australis golang:1.11 go build -o build/australis + build/australis autocomplete --filename=build/australis.bash