Skip to content

Commit

Permalink
add progressons, simple progress bar
Browse files Browse the repository at this point in the history
fixes #54
  • Loading branch information
vindarel committed Aug 30, 2024
1 parent f619f0f commit 828ed82
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ ql-deps:
# moira/light doesn't depend on Osicat.
git clone https://github.com/ruricolist/moira/ ~/quicklisp/local-projects/moira

# 2024-08: simple progress bar, not in Quicklisp.
git clone https://github.com/vindarel/progressons ~/quicklisp/local-projects/progressons

# Install some system dependencies.
debian-deps:
apt-get install -y libinotifytools0
Expand Down
3 changes: 3 additions & 0 deletions ciel.asd
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
;; security
:secret-values

;; other utilities
:progressons ;; simple progress bar. Not in Quicklisp as of <2024-08-30>.

;;;
;;; Language extensions.
;;;
Expand Down
19 changes: 19 additions & 0 deletions docs/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,25 @@ It is available under the `ftp` package name. Here's a quick snippet:

and that's it!

## Other utilities

We ship [progressons](https://github.com/vindarel/progressons), a simple progress bar.

You can use it inside your editor, including Emacs and Slime, as well as on the terminal.

Example usage:

```lisp
(loop for elt in (progressons:progressbar (list 1 2 3 4 5))
do (do-something-with elt)
(sleep 0.1)
(progressons:step!))
```

As you can see, it needs a manual `step!` to make it progress.

> WARN: progressons in its present form adds significant overhead. You shouldn't use it with a large dataset.

## Development

Expand Down

0 comments on commit 828ed82

Please sign in to comment.