-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from tamada/release/v0.5.0
Release/v0.5.0
- Loading branch information
Showing
34 changed files
with
233 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ jobs: | |
git config --global user.email "[email protected]" | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
- name: Commit the changes | ||
run: | | ||
git commit -a -m "update version to ${{ steps.vars.outputs.tag }}, ready to publish v${{ steps.vars.outputs.tag }}" || true | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM alpine:3.16 AS builder | ||
|
||
ARG VERSION=0.4.6 | ||
ARG TARGETPLATFORM | ||
ARG PLATFORM=${TARGETPLATFORM#linux/} | ||
|
||
WORKDIR /home/totebag | ||
|
||
RUN apk add --no-cache curl tar gzip \ | ||
&& curl -LO https://github.com/tamada/totebag/releases/download/v${VERSION}/totebag-${VERSION}_linux_${PLATFORM}.tar.gz \ | ||
&& tar xvfz totebag-${VERSION}_linux_${PLATFORM}.tar.gz | ||
|
||
FROM alpine:3.16 | ||
|
||
ARG VERSION=0.4.6 | ||
|
||
LABEL org.opencontainers.image.source https://github.com/tamada/totebag | ||
|
||
RUN apk add --no-cache libgcc musl-dev \ | ||
&& adduser -D nonroot \ | ||
&& mkdir -p /workdir | ||
|
||
COPY --from=builder /home/totebag/totebag-${VERSION}/totebag /opt/totebag/totebag | ||
|
||
WORKDIR /workdir | ||
USER nonroot | ||
|
||
ENTRYPOINT [ "/opt/totebag/totebag" ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM rust:latest AS builder | ||
|
||
ARG VERSION=0.4.6 | ||
ARG TARGETPLATFORM | ||
|
||
WORKDIR /work/totebag | ||
|
||
COPY . . | ||
RUN cargo build --release | ||
|
||
FROM gcr.io/distroless/cc | ||
|
||
ARG VERSION=0.4.6 | ||
|
||
LABEL org.opencontainers.image.source https://github.com/tamada/totebag | ||
|
||
COPY --from=builder /work/totebag/target/release/totebag /opt/totebag/totebag | ||
|
||
WORKDIR /workdir | ||
USER nonroot | ||
|
||
ENTRYPOINT [ "/opt/totebag/totebag" ] |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
baseURL = "https://tamada.github.io/totebag/" | ||
defaultContentLanguage = "en" | ||
languageCode = "en" | ||
enableEmoji = true | ||
math = true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[[imports]] | ||
path = "github.com/maolonglong/hugo-simple" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
menus: ["main"] | ||
title: "🏠 totebag" | ||
weight: 1 | ||
date: 2024-06-11 | ||
--- | ||
|
||
[![Version](https://shields.io/badge/Version-0.4.6-blue)](https://github.com/tamada/totebag/releases/tag/v0.4.6) | ||
[![MIT License](https://shields.io/badge/License-MIT-blue)](https://github.com/tamada/totebag/blob/main/LICENSE) | ||
[![docker](https://shields.io/badge/Docker-0.4.6-blue?logo=docker)](https://github.com/tamada/totebag/pkgs/container/totebag) | ||
|
||
[![build](https://github.com/tamada/totebag/actions/workflows/build.yaml/badge.svg)](https://github.com/tamada/totebag/actions/workflows/build.yaml) | ||
[![Rust Report Card](https://rust-reportcard.xuri.me/badge/github.com/tamada/totebag)](https://rust-reportcard.xuri.me/report/github.com/tamada/totebag) | ||
[![Coverage Status](https://coveralls.io/repos/github/tamada/totebag/badge.svg)](https://coveralls.io/github/tamada/totebag) | ||
|
||
## :speaking_head: Desctiption | ||
|
||
There are many archive formats and their tools. The one problem with using each tool is that its interfaces are slightly different. | ||
Then, The `totebag` treats the archive files as the same interface. | ||
The tool can extract archive files and archive files and directories. | ||
|
||
- [:anchor: Install](install) | ||
- [:running_woman: Usage](usage) | ||
- [:smile: About](about) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
menus: ["main"] | ||
title: "😀 About" | ||
weight: 100 | ||
date: 2024-06-11 | ||
--- | ||
|
||
## About | ||
|
||
### Authors | ||
|
||
* Haruaki Tamada ([tamada](https://github.com/tamada/)) | ||
|
||
### The Logo and the Origin of totebag | ||
|
||
The general word, totebag, is a bag for carrying things. | ||
From this, I chose the name of the tool, totebag, as a tool for packing files and directories carelessly. | ||
|
||
![logo](/totebag/logo.jpeg) | ||
|
||
This logo was generated by [Bing Image Creator](https://www.bing.com/images/create/e4b880e381a4e381aee3828ae38293e38194e38292e78987e6898be381a7e6bdb0e38199e794b7e381aee6898be3818ce68f8fe3818be3828ce3819fe38388e383bce38388e38390e38383e382b0e381aee58699e79c9f/1-6614ce41dd1c44aeae12e06dec2e8d68?id=W4JmwP3BnK41FZKKFPisSw%3d%3d&view=detailv2&idpp=genimg&thId=OIG3.H3M7RnPEDRZaxzpZJuii&FORM=GCRIDP&ajaxhist=0&ajaxserp=0). | ||
|
||
## Related Tools | ||
|
||
- [magiclen/xcompress](https://github.com/magiclen/xcompress) | ||
- XCompress is a free file archiver utility on Linux, providing multi-format archiving to and extracting from ZIP, Z, GZIP, BZIP2, LZ, XZ, LZMA, 7ZIP, TAR, RAR and ZSTD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
menus: ["main"] | ||
title: "⚓️ Install" | ||
weight: 20 | ||
date: 2024-06-11 | ||
--- | ||
|
||
## :beer: Homebrew | ||
|
||
```sh | ||
brew install tamada/tap/totebag | ||
``` | ||
|
||
## Download | ||
|
||
Download the suitable binary from the [release page](https://github.com/tamada/totebag/releases/latest). | ||
Then, the unpack the downloaded archive and put the binary to the directory in the `PATH`. | ||
|
||
## :whale: Docker | ||
|
||
```sh | ||
docker run -it --rm -v $PWD:/workdir ghcr.io/tamada/totebag:$VERSION [OPTIONS] [ARGUMENTS]... | ||
``` | ||
|
||
- **Working directory**: `/workdir` | ||
- **User**: `nonroot` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
menus: ["main"] | ||
title: "🏃♀️ Usage" | ||
weight: 40 | ||
date: 2024-06-11 | ||
--- | ||
|
||
```sh | ||
A tool for extracting/archiving files and directories in multiple formats. | ||
|
||
Usage: totebag [OPTIONS] [ARGUMENTS]... | ||
|
||
Arguments: | ||
[ARGUMENTS]... List of files or directories to be processed. | ||
|
||
Options: | ||
-m, --mode <MODE> Mode of operation. [default: auto] [possible values: auto, archive, extract, list] | ||
-o, --output <DEST> Output file in archive mode, or output directory in extraction mode | ||
--to-archive-name-dir extract files to DEST/ARCHIVE_NAME directory (extract mode). | ||
-n, --no-recursive No recursive directory (archive mode). | ||
-v, --verbose Display verbose output. | ||
--overwrite Overwrite existing files. | ||
-h, --help Print help | ||
-V, --version Print version | ||
``` | ||
Supported archive formats: | ||
- Tar | ||
- Tar+Gzip | ||
- Tar+Bzip2 | ||
- Tar+Xz | ||
- Tar+Zstd | ||
- Zip | ||
- 7z | ||
- Lha, Lzh (extraction only) | ||
- Rar (extraction only) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/tamada/totebag | ||
|
||
go 1.22.4 | ||
|
||
require github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69 h1:wy6ctoFp7SrEyI/A0UGzVocdn19baP1nCzvmcbAavso= | ||
github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69/go.mod h1:RCoYRfX65nAcc7yY8C5Xn3ynVroBIY//UHa2wcJpQtw= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.