"Fossies" - the Fresh Open Source Software Archive

Member "http-prompt-2.1.0/snap/snapcraft.yaml" (5 Mar 2021, 951 Bytes) of package /linux/www/http-prompt-2.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 name: http-prompt
    2 summary: Interactive command-line HTTP client
    3 description: |
    4   HTTP Prompt is an interactive command-line HTTP client featuring autocomplete
    5   and syntax highlighting, built on HTTPie and prompt_toolkit.
    6   Home: http://http-prompt.com
    7 adopt-info: http-prompt
    8 confinement: strict
    9 
   10 apps:
   11     http-prompt:
   12         command: bin/http-prompt
   13         plugs: [ network ]
   14 parts:
   15     http-prompt:
   16         source: .
   17         plugin: python
   18         python-version: python2
   19         override-pull: |
   20             snapcraftctl pull
   21             version="$(git describe --always | sed -e 's/-/+git/;y/-/./')"
   22             case $version in
   23                 v*) version=$(echo $version | tail -c +2) ;;
   24                 *)  version=$(echo $version | head -c 32) ;;
   25             esac
   26             [ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
   27             snapcraftctl set-version "$version"
   28             snapcraftctl set-grade "$grade"