Skip to content

Commit

Permalink
chore: license fix (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter authored Jan 29, 2024
1 parent e87178e commit aca708e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
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"));
}

0 comments on commit aca708e

Please sign in to comment.