Added filename outoput for autocomplete verb. Modified debian package generator to include autocomplete. Added instructions to readme to build debian package.
This commit is contained in:
parent
61d78cb77e
commit
ad4dd9606e
7 changed files with 36 additions and 4 deletions
|
@ -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
|
0.0.5
|
||||||
|
|
||||||
* Backup and snapshot commands have now been moved to under the force subcommand as these are expensive operations
|
* Backup and snapshot commands have now been moved to under the force subcommand as these are expensive operations
|
||||||
|
|
|
@ -54,3 +54,9 @@ Use "australis [command] --help" for more information about a command.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
Australis is a work in progress and does not support all the features of Apache Aurora.
|
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`
|
|
@ -5,7 +5,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var completionCmd = &cobra.Command{
|
var completionCmd = &cobra.Command{
|
||||||
Use: "completion",
|
Use: "autocomplete",
|
||||||
Short: "Create auto completion for bash.",
|
Short: "Create auto completion for bash.",
|
||||||
Long: `Create auto completion bash file for australis. Auto completion file must be placed in the correct
|
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.
|
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
|
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
|
PersistentPostRun: func(cmd *cobra.Command, args []string) {}, //We don't need a realis client for this cmd
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
rootCmd.GenBashCompletionFile("australis.completion.sh")
|
rootCmd.GenBashCompletionFile(filename)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(completionCmd)
|
rootCmd.AddCommand(completionCmd)
|
||||||
|
|
||||||
|
completionCmd.Flags().StringVar(&filename, "filename", "australis.completion.sh", "Path and name of the autocompletion file.")
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,9 @@ var logLevel string
|
||||||
var duration time.Duration
|
var duration time.Duration
|
||||||
var percent float64
|
var percent float64
|
||||||
var count int64
|
var count int64
|
||||||
|
var filename string
|
||||||
|
|
||||||
const australisVer = "v0.0.7"
|
const australisVer = "v0.0.6"
|
||||||
|
|
||||||
var monitorInterval, monitorTimeout time.Duration
|
var monitorInterval, monitorTimeout time.Duration
|
||||||
|
|
||||||
|
|
3
debian/australis.install
vendored
Normal file → Executable file
3
debian/australis.install
vendored
Normal file → Executable file
|
@ -1,2 +1,5 @@
|
||||||
|
#!/usr/bin/dh-exec
|
||||||
|
|
||||||
|
build/australis.bash => usr/share/bash-completion/completions/australis
|
||||||
build/australis usr/bin
|
build/australis usr/bin
|
||||||
debian/etc/aurora/australis.yml etc/aurora
|
debian/etc/aurora/australis.yml etc/aurora
|
||||||
|
|
8
debian/changelog
vendored
8
debian/changelog
vendored
|
@ -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 <renanidelvalle@gmail.com> Wed, 05 Dec 2018 15:10:00 -0700
|
||||||
|
|
||||||
australis (0.0.5) unstable; urgency=medium
|
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
|
* Backup and snapshot commands have now been moved to under the force subcommand as these are expensive operations
|
||||||
|
|
8
debian/rules
vendored
8
debian/rules
vendored
|
@ -8,7 +8,13 @@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(CURDIR)/build
|
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:
|
override_dh_auto_build:
|
||||||
mkdir $(CURDIR)/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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue