Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/itsfuad/PiArch
Browse files Browse the repository at this point in the history
  • Loading branch information
itsfuad committed Sep 27, 2024
2 parents 40c430f + 2c17962 commit d23d537
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Simple CLI tool for compressing and decompressing files.

### Run

./sq -c <file1,file2> -o <outputDir>
```./sq -c <file1,file2> -o <outputDir>```

-v Print version information
-c Input files or directory to be compressed [strings] (Space separated)
Expand All @@ -25,19 +25,19 @@ Simple CLI tool for compressing and decompressing files.

### Compress
#### Compress without password:
./sq -c file.txt file2.txt
```./sq -c file.txt file2.txt```

#### Compress with password:
./sq -c file.txt file2.txt -p mySecurepass1234
```./sq -c file.txt file2.txt -p mySecurepass1234```

#### Or compress the whole directory:
./sq -all folder
```./sq -all folder```

#### To provide an output path use the `-o` flag:
./sq -c file.txt -o output/files
```./sq -c file.txt -o output/files```

### Decompress without password:
./sq -d compressed.sq
```./sq -d compressed.sq```

### Decompress with password:
./sq -d compressed.sq -p mySecurepass1234
```./sq -d compressed.sq -p mySecurepass1234```

0 comments on commit d23d537

Please sign in to comment.