Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: license fix #4

Merged
merged 1 commit into from
Jan 29, 2024
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
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"println"
]
}
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
[package]
name = "picocolors"
description = "rust version of picocolors"
keywords = ["cli", "colors"]
keywords = [
"cli",
"colors",
]
version = "0.1.0"
license = "MIT"
edition = "2021"
readme = "README.md"
repository = "https://github.com/SoonIter/picocolors_rs"
authors = ["SoonIter"]
authors = [
"SoonIter",
]
license-file = "LICENSE"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 SoonIter
Copyright (c) 2023-now SoonIter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# picocolors

rust version of picocolors
rust port of [picocolors](https://github.com/alexeyraspopov/picocolors)

[![crates-io](https://badgen.net/crates/v/picocolors_rs)](https://crates.io/crates/picocolors)

```rust
use picocolors::{bg_black, bold};

use picocolors::{bg_black, bold, formatter};
fn main() {
println!("hello {}", bold(bg_black("world")));

let custom_blue = formatter("\x1b[34m", "\x1b[39m");
println!("hello {}", custom_blue("world"));
}
```
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ use picocolors::{bg_black, bold, formatter};
fn main() {
println!("hello {}", bold(bg_black("world")));

let my_custom_blue = formatter("\x1b[0m", "\x1b[0m");
println!("hello {:?}", my_custom_blue("world"));
let my_custom_blue = formatter("\x1b[34m", "\x1b[39m");
println!("hello {}", my_custom_blue("world"));
}
Loading