12345678910111213141516171819202122232425262728 |
- name: http-prompt
- summary: Interactive command-line HTTP client
- description: |
- HTTP Prompt is an interactive command-line HTTP client featuring autocomplete
- and syntax highlighting, built on HTTPie and prompt_toolkit.
- Home: http://http-prompt.com
- adopt-info: http-prompt
- confinement: strict
- apps:
- http-prompt:
- command: bin/http-prompt
- plugs: [ network ]
- parts:
- http-prompt:
- source: .
- plugin: python
- python-version: python2
- override-pull: |
- snapcraftctl pull
- version="$(git describe --always | sed -e 's/-/+git/;y/-/./')"
- case $version in
- v*) version=$(echo $version | tail -c +2) ;;
- *) version=$(echo $version | head -c 32) ;;
- esac
- [ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
- snapcraftctl set-version "$version"
- snapcraftctl set-grade "$grade"
|