Skip to content

Commit

Permalink
Merge upstream master into library
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlandon committed Nov 29, 2023
1 parent a30f518 commit 656cf21
Show file tree
Hide file tree
Showing 229 changed files with 9,273 additions and 1,080 deletions.
44 changes: 22 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.20-bullseye as base
FROM golang:bookworm as base
LABEL org.opencontainers.image.source https://github.com/rsteube/carapace
USER root

FROM base as bat
ARG version=0.22.1
ARG version=0.24.0
RUN curl -L https://github.com/sharkdp/bat/releases/download/v${version}/bat-v${version}-x86_64-unknown-linux-gnu.tar.gz \
| tar -C /usr/local/bin/ --strip-components=1 -xvz bat-v${version}-x86_64-unknown-linux-gnu/bat \
&& chmod +x /usr/local/bin/bat
Expand All @@ -14,12 +14,12 @@ RUN git clone --recursive https://github.com/akinomyoga/ble.sh.git \
&& make -C ble.sh

FROM base as elvish
ARG version=0.18.0
ARG version=0.19.2
RUN curl https://dl.elv.sh/linux-amd64/elvish-v${version}.tar.gz | tar -xvz \
&& mv elvish-* /usr/local/bin/elvish

FROM base as goreleaser
ARG version=1.15.1
ARG version=1.21.2
RUN curl -L https://github.com/goreleaser/goreleaser/releases/download/v${version}/goreleaser_Linux_x86_64.tar.gz | tar -xvz goreleaser \
&& mv goreleaser /usr/local/bin/goreleaser

Expand All @@ -33,12 +33,12 @@ FROM rsteube/ion-poc as ion-poc
# && sudo make update-shells prefix=/usr

FROM base as nushell
ARG version=0.75.0
ARG version=0.85.0
RUN curl -L https://github.com/nushell/nushell/releases/download/${version}/nu-${version}-x86_64-unknown-linux-gnu.tar.gz | tar -xvz \
&& mv nu-${version}-x86_64-unknown-linux-gnu/nu* /usr/local/bin

FROM base as oil
ARG version=0.14.0
ARG version=0.18.0
RUN apt-get update && apt-get install -y libreadline-dev
RUN curl https://www.oilshell.org/download/oil-${version}.tar.gz | tar -xvz \
&& cd oil-*/ \
Expand All @@ -47,38 +47,38 @@ RUN curl https://www.oilshell.org/download/oil-${version}.tar.gz | tar -xvz \
&& ./install

FROM base as starship
ARG version=1.12.0
ARG version=1.16.0
RUN wget -qO- "https://github.com/starship/starship/releases/download/v${version}/starship-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz starship \
&& mv starship /usr/local/bin/

FROM base as vivid
ARG version=0.8.0
ARG version=0.9.0
RUN wget -qO- "https://github.com/sharkdp/vivid/releases/download/v${version}/vivid-v${version}-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz vivid-v${version}-x86_64-unknown-linux-gnu/vivid \
&& mv vivid-v${version}-x86_64-unknown-linux-gnu/vivid /usr/local/bin/

FROM base as mdbook
ARG version=0.4.25
RUN curl -L "https://github.com/rust-lang/mdBook/releases/download/v${version}/mdbook-v${version}-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz mdbook \
&& curl -L "https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.0/mdbook-linkcheck-v0.7.0-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz mdbook-linkcheck \
&& mv mdbook* /usr/local/bin/
ARG version=0.4.35
RUN apt-get update && apt-get install -y unzip \
&& curl -L "https://github.com/rust-lang/mdBook/releases/download/v${version}/mdbook-v${version}-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz mdbook \
&& wget -q "https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.7/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip" \
&& unzip mdbook-linkcheck.x86_64-unknown-linux-gnu.zip mdbook-linkcheck \
&& chmod +x mdbook-linkcheck \
&& mv mdbook mdbook-linkcheck /usr/local/bin/

FROM base
RUN apt-get update && apt-get install -y libicu67
RUN wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.3.0/powershell_7.3.0-1.deb_amd64.deb\
&& dpkg -i powershell_7.3.0-1.deb_amd64.deb \
&& rm powershell_7.3.0-1.deb_amd64.deb
RUN apt-get update && apt-get install -y libicu72
RUN wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.3.8/powershell_7.3.8-1.deb_amd64.deb\
&& dpkg -i powershell_7.3.8-1.deb_amd64.deb \
&& rm powershell_7.3.8-1.deb_amd64.deb

RUN apt-get update \
&& apt-get install -y fish \
elvish \
python3-pip \
expect \
shellcheck \
tcsh \
zsh \
expect

RUN pip3 install --no-cache-dir --disable-pip-version-check xonsh prompt_toolkit \
&& ln -s $(which xonsh) /usr/bin/xonsh
xonsh \
zsh

RUN pwsh -Command "Install-Module PSScriptAnalyzer -Scope AllUsers -Force"

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ See [carapace-bin](https://github.com/rsteube/carapace-bin) for examples.
- [carapace-bin](https://github.com/rsteube/carapace-bin) multi-shell multi-command argument completer
- [carapace-bridge](https://github.com/rsteube/carapace-bridge) completion bridge
- [carapace-pflag](https://github.com/rsteube/carapace-pflag) Drop-in replacement for spf13/pflag with support for non-posix variants
- [carapace-shlex](https://github.com/rsteube/carapace-shlex) simple shell lexer
- [carapace-spec](https://github.com/rsteube/carapace-spec) define simple completions using a spec file
- [carapace-spec-clap](https://github.com/rsteube/carapace-spec-clap) spec generation for clap-rs/clap
- [carapace-spec-kingpin](https://github.com/rsteube/carapace-spec-kingpin) spec generation for alecthomas/kingpin
- [carapace-spec-kong](https://github.com/rsteube/carapace-spec-kong) spec generation for alecthomas/kong
- [carapace-spec-man](https://github.com/rsteube/carapace-spec-man) spec generation for manpages
- [carapace-spec-urfavecli](https://github.com/rsteube/carapace-spec-urfavecli) spec generation for urfave/cli

[cobra]:https://github.com/spf13/cobra
Loading

0 comments on commit 656cf21

Please sign in to comment.