-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
Change CLRF -> LF
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#! /bin/bash | ||
# bash programmable completion for gctcli | ||
# copy to /etc/bash_completion.d/gctcli and source it or restart your shell | ||
|
||
: ${PROG:=$(basename ${BASH_SOURCE})} | ||
|
||
_gctcli() { | ||
if [[ "${COMP_WORDS[0]}" != "source" ]]; then | ||
local cur opts base | ||
COMPREPLY=() | ||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
if [[ "$cur" == "-"* ]]; then | ||
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion ) | ||
else | ||
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) | ||
fi | ||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | ||
return 0 | ||
fi | ||
} | ||
|
||
complete -o bashdefault -o default -o nospace -F _gctcli $PROG | ||
#! /bin/bash | ||
# bash programmable completion for gctcli | ||
# copy to /etc/bash_completion.d/gctcli and source it or restart your shell | ||
|
||
: ${PROG:=$(basename ${BASH_SOURCE})} | ||
|
||
_gctcli() { | ||
if [[ "${COMP_WORDS[0]}" != "source" ]]; then | ||
local cur opts base | ||
COMPREPLY=() | ||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
if [[ "$cur" == "-"* ]]; then | ||
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion ) | ||
else | ||
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) | ||
fi | ||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | ||
return 0 | ||
fi | ||
} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
complete -o bashdefault -o default -o nospace -F _gctcli $PROG | ||
This comment has been minimized.
Sorry, something went wrong.
nitsuaaisblink
|
||
unset PROG |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# zsh programmable completion for gctcli | ||
# source zsh_autocomplete | ||
_gctcli() { | ||
local -a opts | ||
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}") | ||
_describe 'values' opts | ||
return | ||
} | ||
# zsh programmable completion for gctcli | ||
# source zsh_autocomplete | ||
|
||
_gctcli() { | ||
|
||
local -a opts | ||
This comment has been minimized.
Sorry, something went wrong.
nitsuaaisblink
|
||
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}") | ||
|
||
_describe 'values' opts | ||
|
||
return | ||
} | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
nitsuaaisblink
|
||
compdef _gctcli gctcli |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ type CancelOpenOrdersBatch struct { | |
// DetailMerged stores the ticker detail merged data | ||
type DetailMerged struct { | ||
Detail | ||
Version int `json:"version"` | ||
Version int64 `json:"version"` | ||
This comment has been minimized.
Sorry, something went wrong.
nitsuaaisblink
|
||
Ask []float64 `json:"ask"` | ||
Bid []float64 `json:"bid"` | ||
} | ||
|
@@ -108,7 +108,7 @@ type Detail struct { | |
Close float64 `json:"close"` | ||
High float64 `json:"high"` | ||
Timestamp int64 `json:"timestamp"` | ||
ID int `json:"id"` | ||
ID int64 `json:"id"` | ||
Count int `json:"count"` | ||
This comment has been minimized.
Sorry, something went wrong.
nitsuaaisblink
|
||
Low float64 `json:"low"` | ||
Volume float64 `json:"vol"` | ||
|
#! /bin/bash
bash programmable completion for gctcli
copy to /etc/bash_completion.d/gctcli and source it or restart your shell
:${PROG:=$ (basename ${BASH_SOURCE})}
_gctcli() {$(compgen -W "$ {opts}" -- ${cur}) )
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ "$cur" == "-"* ]]; then
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion )
else
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )
fi
COMPREPLY=(
return 0
fi
}
complete -o bashdefault -o default -o nospace -F _gctcli $PROG