Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,25 @@ _Note: Docker requires you to mount the target bin directory._
Specify `source` and `destination`.

```shell
bup backup [source] [destination]
bup [source] [destination]
```

Use the `b` alias, current directory, and saved `destination`.
Use `--list` to list backups.

```shell
bup b
bup -l [name]
```

The `list` command list backups by name.
Use `--info` to prints the configuration.

```shell
bup l
bup -i
```

The `info` command prints the configuration.
Use `--edit` to open the config in an editor.

```shell
bup i
bup -e
```

[![View Documentation](https://img.shields.io/badge/view_documentation-blue?style=for-the-badge&logo=googledocs&logoColor=white)](https://smashedr.github.io/bup/)
Expand Down
25 changes: 21 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

tasks:
goup:
aliases: [goget, tidy]
aliases: [go, tidy]
cmd: |
go get -u
go mod tidy
Expand Down Expand Up @@ -54,11 +54,13 @@ tasks:
unzip dist/pathmgr.zip -d dist/PathMgr

install:
vars:
TARGET_NAME: bup
cmd: |
go build
mv bup "${HOME}/bin/bup"
which bup
bup -V
mv -f {{.TARGET_NAME}} "${HOME}/bin/{{.TARGET_NAME}}"
which {{.TARGET_NAME}}
{{.TARGET_NAME}} -V

vhs:*:
desc: Create VHS Tape
Expand Down Expand Up @@ -88,3 +90,18 @@ tasks:
- out
- '*.exe'
EOF

build:*:*:
desc: Build OS:ARCH
vars:
OS: "{{index .MATCH 0}}"
ARCH: "{{index .MATCH 1}}"
requires:
vars:
- name: OS
enum: [darwin, linux, windows]
- name: ARCH
enum: [amd64, arm64, "386"]
cmd: |
echo "Building: {{.OS}} / {{.ARCH}}"
GOOS={{.OS}} GOARCH={{.ARCH}} goreleaser build --snapshot --clean --single-target {{.CLI_ARGS}}
6 changes: 3 additions & 3 deletions assets/banner.tape
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Set Height 640
Set FontSize 24

Hide
#Type "bup --help | head -n 16 && echo ' ...'"
Type "bup --help"
Type "bup --help | head -n 14"
#Type "bup --help"
Enter
Show
Sleep 1.5s

Source assets/main.tape
#Source assets/main.tape
12 changes: 9 additions & 3 deletions assets/main.tape
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Source assets/main.tape

Type "bup backup ."
Type "bup ."
Sleep 0.5s
Enter
Wait /Yes\./
Expand All @@ -12,19 +12,25 @@ Sleep 0.4s
Enter
Sleep 3s

Type "bup list"
Type "bup --list"
Sleep 0.5s
Enter
Wait
#Screenshot dist/bup.png
Sleep 2s

Type "bup l bup"
Type "bup -l bup"
Sleep 0.5s
Enter
Wait
Sleep 2s

Type "bup --info"
Sleep 0.5s
Enter
Wait
Sleep 1.5s

Type "clear"
Sleep 0.3s
Enter
Loading
Loading