File: dotenv

package info (click to toggle)
python-dotenv 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 236 kB
  • sloc: python: 1,193; makefile: 50
file content (19 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# dotenv(1) completion
# Copyright 2017 Federico Ceratto <federico@debian.org>
# Distributed under BSD-3-clause license

_dotenv()
{
  local cur prev words cword
  _init_completion || return

  if [[ $cur == -* ]]; then
    # suggest options
    COMPREPLY=( $( compgen -W '-f -q --help' -- "$cur" ) )
  else
    COMPREPLY=( $( compgen -W 'get list set unset -f -q --help' -- "$cur" ) )
  fi

  return 0
} &&
complete -F _dotenv dotenv