Skip to content

Commit db680e7

Browse files
committed
chore: remove anyhow dependency
1 parent 792dd8f commit db680e7

File tree

9 files changed

+91
-24
lines changed

9 files changed

+91
-24
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ categories = ["command-line-interface", "gui"]
1212
keywords = ["cli", "console", "ratatui", "terminal", "tui"]
1313

1414
[workspace.dependencies]
15-
anyhow = "1.0.86"
1615
clap = { version = "4.5.8", features = ["derive"] }
1716
color-eyre = "0.6.3"
1817
crossterm = { version = "0.27.0" }

LICENSE-MIT

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
# MIT License
22

3-
Copyright (c) 2023 Josh McKinney
3+
Copyright (c) Josh McKinney
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,25 @@ Includes the following widgets, which are also available as standalone crates:
1717
- [tui-scrollview](https://crates.io/crates/tui-scrollview)
1818

1919
<!-- cargo-rdme end -->
20+
21+
## License
22+
23+
Copyright (c) Josh McKinney
24+
25+
This project is licensed under either of:
26+
27+
- Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)
28+
- MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)
29+
30+
at your option.
31+
32+
[LICENSE-APACHE]: /LICENSE-APACHE
33+
[LICENSE-MIT]: /LICENSE-MIT
34+
35+
## Contribution
36+
37+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
38+
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
39+
additional terms or conditions.
40+
41+
See [CONTRIBUTING.md](/CONTRIBUTING.md).

bacon.toml

+2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ command = [
108108

109109
[jobs.format]
110110
command = ["cargo", "+nightly", "fmt", "--", "--check"]
111+
on_success = "back"
111112

112113
[jobs.rdme]
113114
command = ["cargo", "rdme", "--force"]
114115
need_stdout = true
116+
on_success = "back"
115117

116118
[jobs.vhs]
117119
command = ["vhs", "tui-prompts/examples/text.tape"]

tui-big-text/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ render be rendered. The builder allows you to customize the [`Style`] of the wid
3131
## Examples
3232

3333
```rust
34-
use anyhow::Result;
35-
use ratatui::prelude::*;
34+
use ratatui::prelude::{Frame, Style, Stylize};
3635
use tui_big_text::{BigText, PixelSize};
3736

3837
fn render(frame: &mut Frame) {
@@ -110,21 +109,22 @@ BigText::builder().alignment(Alignment::Center);
110109

111110
## License
112111

113-
Copyright (c) 2023 Josh McKinney
112+
Copyright (c) Josh McKinney
114113

115-
This project is licensed under either of
114+
This project is licensed under either of:
116115

117-
- Apache License, Version 2.0
118-
([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
119-
- MIT license
120-
([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
116+
- Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)
117+
- MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)
121118

122119
at your option.
123120

121+
[LICENSE-APACHE]: /LICENSE-APACHE
122+
[LICENSE-MIT]: /LICENSE-MIT
123+
124124
## Contribution
125125

126-
Unless you explicitly state otherwise, any contribution intentionally submitted
127-
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
128-
dual licensed as above, without any additional terms or conditions.
126+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
127+
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
128+
additional terms or conditions.
129129

130-
See [CONTRIBUTING.md](CONTRIBUTING.md).
130+
See [CONTRIBUTING.md](/CONTRIBUTING.md).

tui-big-text/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
//! # Examples
2828
//!
2929
//! ```rust
30-
//! use anyhow::Result;
31-
//! use ratatui::prelude::*;
30+
//! use ratatui::prelude::{Frame, Style, Stylize};
3231
//! use tui_big_text::{BigText, PixelSize};
3332
//!
3433
//! fn render(frame: &mut Frame) {

tui-popup/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,28 @@ frame.render_widget_ref(popup, area);
110110
- [ ] add nicer styling of header etc.
111111
- [ ] configure text wrapping in body to conform to a specific size
112112

113+
## License
114+
115+
Copyright (c) Josh McKinney
116+
117+
This project is licensed under either of:
118+
119+
- Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)
120+
- MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)
121+
122+
at your option.
123+
124+
[LICENSE-APACHE]: /LICENSE-APACHE
125+
[LICENSE-MIT]: /LICENSE-MIT
126+
127+
## Contribution
128+
129+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
130+
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
131+
additional terms or conditions.
132+
133+
See [CONTRIBUTING.md](/CONTRIBUTING.md).
134+
113135
[Crates.io badge]: https://img.shields.io/crates/v/tui-popup?logo=rust&style=for-the-badge
114136
[tui-popup crate]: https://crates.io/crates/tui-popup
115137
[License badge]: https://img.shields.io/crates/l/tui-popup?style=for-the-badge

tui-prompts/README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<h1><img src="https://user-images.githubusercontent.com/381361/252977280-49b9ff66-f78d-4e16-b5ed-29d771bfcab2.png"></h1>
1+
<h1>
2+
<img src="https://user-images.githubusercontent.com/381361/252977280-49b9ff66-f78d-4e16-b5ed-29d771bfcab2.png"
3+
alt="logo">
4+
</h1>
25

36
# tui-prompts
47

@@ -116,4 +119,22 @@ Or add the following to your `Cargo.toml` file:
116119

117120
## License
118121

119-
Dual-licensed under [Apache 2.0](./LICENSE-APACHE) or [MIT](./LICENSE-MIT).
122+
Copyright (c) Josh McKinney
123+
124+
This project is licensed under either of:
125+
126+
- Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)
127+
- MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)
128+
129+
at your option.
130+
131+
[LICENSE-APACHE]: /LICENSE-APACHE
132+
[LICENSE-MIT]: /LICENSE-MIT
133+
134+
## Contribution
135+
136+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
137+
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
138+
additional terms or conditions.
139+
140+
See [CONTRIBUTING.md](/CONTRIBUTING.md).

tui-scrollview/README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,22 @@ combination with any other widget.
8787

8888
## License
8989

90-
Copyright (c) 2024 Josh McKinney
90+
Copyright (c) Josh McKinney
9191

9292
This project is licensed under either of:
9393

94-
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
95-
<http://www.apache.org/licenses/LICENSE-2.0>)
96-
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
94+
- Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)
95+
- MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)
9796

9897
at your option.
9998

99+
[LICENSE-APACHE]: /LICENSE-APACHE
100+
[LICENSE-MIT]: /LICENSE-MIT
101+
100102
## Contribution
101103

102104
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
103105
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
104106
additional terms or conditions.
105107

106-
See [CONTRIBUTING.md](CONTRIBUTING.md).
108+
See [CONTRIBUTING.md](/CONTRIBUTING.md).

0 commit comments

Comments
 (0)