Commit graph

2153 commits

Author SHA1 Message Date
Clement Tsang
2ec1fb56c9
uptick: 0.10.2 (#1544) 2024-08-05 20:28:17 -04:00
Clement Tsang
32f64f4d52
bug: fix occasionally wrong run time reported by sysinfo (#1542)
* bug: fix occasionally wrong runtime reported by sysinfo

Seems like on other platforms, sysinfo will sometimes report a run time
that starts from UNIX epoch - this gives a non-sensical value of 19000+
days, and it at least looks a little more reasonable to just return 0 in
this case. I guess we can also make it return N/A in the future but this
is a quick fix for now.

* update changelog
2024-08-05 20:15:22 -04:00
Clement Tsang
39672853e2
ci: bump codecov action to v4.5.0 (#1546) 2024-08-05 19:12:21 -04:00
Clement Tsang
b5b36f7c73
docs: update docs and requirements as of 2024-08-05 (#1545) 2024-08-05 19:03:18 -04:00
Clement Tsang
feb0c6912c
bug: fix default_cpu_entry arg not being used and missing from docs (#1543) 2024-08-05 18:55:05 -04:00
Clement Tsang
9f7e00497d
bug: fix not updating sysinfo processes correctly (#1541)
* bug: fix not updating sysinfo processes correctly

* also fix a potential panic spot on slow computers

* update changelog
2024-08-05 18:38:36 -04:00
Clement Tsang
d27790d6fa
docs: fix alphabetical ordering of the linux install docs (#1537)
Switch solus and snap.
2024-08-04 03:57:15 -04:00
Clement Tsang
64627629a3
docs: update some of the installation docs (#1536)
Just updating the wording for some of the installation docs.
2024-08-04 03:55:16 -04:00
Clement Tsang
1c5705a745
docs: fix incorrect link in all-contributors (#1535) 2024-08-03 01:17:04 -04:00
Clement Tsang
b6c3b54f02
docs: update changelog (#1534) 2024-08-03 05:12:35 +00:00
Zeb Piasecki
d6c2ef3e22
feat: add option to move avg CPU to another row (#1487)
Adds an `average_cpu_row` option to move the average CPU usage to its own row
when using basic mode.
2024-08-03 01:10:36 -04:00
Clement Tsang
9379c03595
ci: bump installed tools from cargo (#1532) 2024-08-02 01:09:54 -04:00
Clement Tsang
b58d982a31
ci: some more cirrus release tweaks (#1531)
* ci: better cirrus release

* add cancellation

* limit number of concurrent cargo jobs

* update test skip, clean up, clean tasks
2024-08-02 00:49:53 -04:00
Clement Tsang
eaff5d009a
ci: clean up cirrus CI (#1530)
* ci: try adding auto cancellation back to cirrus tasks

* tweak timeout

* some renaming

* modernizing

* Revert "modernizing"

This reverts commit d66b3aa0e9.

* hmmm

* bleh back to false
2024-08-01 19:52:11 -04:00
Clement Tsang
8811d54058
other: delete v1.0 schema directory (#1529)
I've already migrated the schema in schemastore to follow the new system of matching versions with bottom's version.
2024-08-01 16:38:09 +00:00
Clement Tsang
2f102bc1aa
uptick: 0.10.1 (#1527) 2024-08-01 15:56:39 +00:00
Clement Tsang
5b68b6ee81
other: add test to catch issues with incorrect long arg names (#1528) 2024-08-01 15:45:24 +00:00
Clement Tsang
03e69b3be0
bug: fix using clap macro incorrectly, causing broken long help name (#1526)
Basically, I did:

```
long = "blah blah blah"
```

but it should have been:

```
long,
long_help = "blah blah blah"
```

The former makes the _long help flag_ the description which... well,
isn't right.
2024-08-01 15:21:09 +00:00
Clement Tsang
9364955bcd
docs: fix invalid flag in docs (#1523)
The docs set the colour theme as a config flag, but we moved colours to styles.theme so that's invalid.
2024-08-01 11:03:14 -04:00
Clement Tsang
163a8dc74a
docs: update changelog (#1524) 2024-08-01 11:03:01 -04:00
Clement Tsang
ea46613c58
ci: bump winget-releaser (#1522) 2024-08-01 15:00:10 +00:00
Clement Tsang
8afae3fbe8
uptick: 0.10.0 (#1510)
* uptick: 0.10.0

* docs: fix changelog

* bump lockfile

* match clap

* add/update schema

* add note
2024-08-01 02:45:57 -04:00
Clement Tsang
a6e1ea3bd8
docs: update docs on filter (#1519)
Updates some outdated docs on filtering, and adds some tests as well. In particular, this also adds a cfg_attr on tests to try and catch unknown fields; we'll be more lenient in prod builds though and allow them.
2024-07-31 06:41:30 +00:00
Clement Tsang
2c0fb2a723
other: clarify config file creation logic/code (#1518) 2024-07-31 05:33:32 +00:00
Clement Tsang
38c6e70c1e
docs: update changelog (#1517) 2024-07-31 01:22:42 -04:00
allcontributors[bot]
b9c42265fd
docs: add CosmicHorrorDev as a contributor for code (#1516)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-07-31 00:36:31 -04:00
CosmicHorror
8f995f80e4
other: Add the config path to the error message if unable to create config (#1515) 2024-07-31 00:36:12 -04:00
Clement Tsang
4b14ccb56b
feature: support italic text styling (#1514)
Support italics as a text styling option.
2024-07-31 01:54:26 +00:00
Clement Tsang
c77256eaaf
change: make table headers bold by default (#1513)
* change: make table headers bold by default

* changelog
2024-07-31 00:37:38 +00:00
Clement Tsang
08a7b8b860
feature: support bold text (#1512)
* feature: support bold text

* add changelog

* more testing
2024-07-30 07:43:57 +00:00
Clement Tsang
f091ebdc6a
feature: support simple colour settings for text fields too (#1511)
* feature: support simple colour settings for text fields too

* also add 'color' back to some options

* tests
2024-07-30 07:15:23 +00:00
Clement Tsang
95905d7a2b
docs: add the binary name to the title again (#1508)
Let's hope this doesn't lead to more issues where people try installing the wrong package though... sigh.
2024-07-29 19:14:46 -04:00
Clement Tsang
449d8b4315
ci: update and fix schema validation script (#1509)
* ci: update and fix schema validation script

* fix issue with tomllib.load
2024-07-29 19:11:40 -04:00
Clement Tsang
28972a1e64
refactor: refactor styling options (#1499)
Introduce a new configuration system for styling.
2024-07-29 09:03:35 +00:00
Clement Tsang
e4eb69dbd5
deps: bump deps as of 2024-07-027 (#1507)
* deps: bump root deps as of 2024-07-027

* bump lockfile
2024-07-27 01:39:22 -04:00
Clement Tsang
1208c459e4
refactor: remove time as a dependency outside of logging (#1506)
I was mostly just using the time crate for local log debugging and just to avoid converting seconds to h/m/s.

This PR makes it so we are only using it for local log debugging.
2024-07-26 05:12:29 +00:00
Clement Tsang
c2d3ab5591
uptick: 0.9.7 (#1505)
* docs: update changelog with 0.9.7 hotfix

* Update bottom.desktop

* uptick: 0.9.7
2024-07-26 00:45:22 -04:00
Clement Tsang
e37b159fae
other: remove toolchain, clean up CI (#1504) 2024-07-26 00:23:06 -04:00
Clement Tsang
01c0c33451
other: include a toolchain file from now on (#1503) 2024-07-26 01:02:54 +00:00
Clement Tsang
a794cc5123
refactor: run clippy after updating to Rust 1.80 (#1502) 2024-07-26 00:44:38 +00:00
Clement Tsang
29029b86fb
refactor: remove BottomError (#1498)
* refactor: remove BottomError

* remove thiserror

* some cleanup

* forgot to remove this
2024-07-22 07:30:03 +00:00
Clement Tsang
0401f527e5
refactor: migrate data collection and some others away from BottomError (#1497) 2024-07-22 04:52:38 +00:00
Clement Tsang
c56e28328e
refactor: convert more errors over (#1496)
* refactor: remove From<String> for BottomError

* fix kill_process
2024-07-19 23:52:13 -04:00
Clement Tsang
1ec4ca3f06
refactor: out with arg/config error, and make user messages more consistent (#1494)
* refactor: out with arg/config error, and make user messages more consistent

* finish up

* fix all the tests
2024-07-19 06:51:50 +00:00
Clement Tsang
d97d75f797
refactor: clean up conversion and crossterm errors (#1493)
* refactor: clean up conversion errors

* refactor: remove crossterm error
2024-07-14 08:01:44 +00:00
Clement Tsang
571a801bf8
refactor: error refactoring, part 1 (#1492)
* refactor: use anyhow for logging

* refactor: clean up query errors

* also remove tryparseint
2024-07-13 05:35:09 +00:00
Clement Tsang
df569b2319
deps: bump deps as of 2024-07-03 (#1490)
* deps: bump root deps as of 2024-07-03

* deps: bump Cargo.lock as well
2024-07-04 04:50:05 -04:00
Clement Tsang
28416ddb57
deps: bump root + lock deps as of 2024-06-27 (#1488)
* deps: bump root deps as of 2024-06-27

* deps: bump lock as well

* also bump unicode_ellipsis
2024-06-27 23:40:05 -04:00
Clement Tsang
615ae1a3a8
deps: bump root deps and lockfile as of 2024-06-19 (#1486)
* deps: bump deps as of 2024-06-19

* bump lock as well

* fmt
2024-06-19 14:04:51 -04:00
Clement Tsang
3602429529
other: add schema test for uncommented default config (#1484)
* other: add schema test for uncommented default time

* ahhh

* forgot to disable this
2024-06-17 00:59:36 -04:00