Fixed publish

This commit is contained in:
Kasper Juul Hermansen 2022-10-21 00:45:57 +02:00
parent 63cb562ac1
commit c53f91e840
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
6 changed files with 34 additions and 3 deletions

8
Cargo.lock generated
View File

@ -82,6 +82,14 @@ dependencies = [
[[package]]
name = "gitignore"
version = "0.1.0"
dependencies = [
"eyre",
"gitignore_inner",
]
[[package]]
name = "gitignore_inner"
version = "0.1.0"
dependencies = [
"clap",
"console",

View File

@ -1,4 +1,24 @@
[package]
name = "gitignore"
version = "0.1.0"
authors = ["Kasper J. Hermansen <contact@kjuulh.io>"]
license = "MIT"
readme = "README.md"
keywords = ["git", "ignore", "clap", "interactive"]
repository = "https://github.com/kjuulh/gitignore"
documentation = "https://docs.rs/gitignore"
description = """
gitignore is a tool for easily adding patterns to gitignore and cleaning up afterwards
"""
categories = ["git-tools"]
edition = "2021"
[workspace]
members = [
"crates/gitignore"
"crates/gitignore_inner"
]
[dependencies]
eyre = "0.6.8"
gitignore_inner = {path = "crates/gitignore_inner", version = "0.1.0"}

View File

@ -1,5 +1,5 @@
[package]
name = "gitignore"
name = "gitignore_inner"
version = "0.1.0"
edition = "2021"

View File

@ -5,7 +5,7 @@ use std::{env::current_dir, io::Read, path::PathBuf};
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
fn main() -> eyre::Result<()> {
pub fn main() -> eyre::Result<()> {
let matches = Command::new("gitignore")
.version("0.1")
.author("Kasper J. Hermansen <contact@kjuulh.io>")

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() -> eyre::Result<()> {
gitignore_inner::main()
}