mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 10:33:21 +03:00
move butler to another crate
This commit is contained in:
parent
f0f615c150
commit
d1fc5d23e0
3
butler/.gitignore
vendored
Normal file
3
butler/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Generated by Cargo
|
||||
# will have compiled files and executables
|
||||
/target/
|
6250
butler/Cargo.lock
generated
Normal file
6250
butler/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
butler/Cargo.toml
Normal file
18
butler/Cargo.toml
Normal file
@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "butler"
|
||||
version = "0.0.0"
|
||||
description = ""
|
||||
authors = [""]
|
||||
license = ""
|
||||
repository = ""
|
||||
edition = "2021"
|
||||
rust-version = "1.57"
|
||||
|
||||
[dependencies]
|
||||
git2 = { version = "0.17.2", features = ["vendored-openssl", "vendored-libgit2"] }
|
||||
dirs = "5.0.1"
|
||||
colored = "2.0.0"
|
||||
clap = { version = "4.0", features = ["derive"] }
|
||||
dialoguer = "0.10.4"
|
||||
anyhow = "1.0.71"
|
||||
git-butler-tauri = { path = "../src-tauri" }
|
@ -1,9 +1,6 @@
|
||||
mod app;
|
||||
mod commands;
|
||||
|
||||
use std::process::ExitCode;
|
||||
|
||||
use commands::RunCommand;
|
||||
use crate::commands::{self, RunCommand};
|
||||
|
||||
use clap::{Parser, Subcommand};
|
||||
use colored::Colorize;
|
@ -4,7 +4,7 @@ use colored::Colorize;
|
||||
|
||||
use git_butler_tauri::virtual_branches;
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Branches {}
|
@ -3,7 +3,7 @@ use clap::Args;
|
||||
|
||||
use git_butler_tauri::{sessions, virtual_branches};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Clear {}
|
@ -5,7 +5,7 @@ use dialoguer::{console::Term, theme::ColorfulTheme, Input, Select};
|
||||
|
||||
use git_butler_tauri::{reader, sessions, virtual_branches};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Commit {}
|
@ -1,7 +1,7 @@
|
||||
use anyhow::{Context, Result};
|
||||
use clap::Args;
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Flush {}
|
@ -4,7 +4,7 @@ use colored::Colorize;
|
||||
|
||||
use git_butler_tauri::{reader, sessions, virtual_branches};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Info {}
|
@ -4,7 +4,7 @@ use dialoguer::{console::Term, theme::ColorfulTheme, MultiSelect, Select};
|
||||
|
||||
use git_butler_tauri::{reader, sessions, virtual_branches};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Move {}
|
@ -4,7 +4,7 @@ use dialoguer::{theme::ColorfulTheme, Input};
|
||||
|
||||
use git_butler_tauri::virtual_branches;
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct New {}
|
@ -3,7 +3,7 @@ use clap::Args;
|
||||
|
||||
use git_butler_tauri::virtual_branches;
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Remotes {}
|
@ -3,7 +3,7 @@ use clap::Args;
|
||||
|
||||
use git_butler_tauri::{reader, sessions, virtual_branches};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Reset {}
|
@ -3,7 +3,7 @@ use clap::Args;
|
||||
use colored::Colorize;
|
||||
use dialoguer::{console::Term, theme::ColorfulTheme, Select};
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Setup {}
|
@ -4,7 +4,7 @@ use colored::Colorize;
|
||||
|
||||
use git_butler_tauri::virtual_branches;
|
||||
|
||||
use crate::cli::butler::app::App;
|
||||
use crate::app::App;
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
pub struct Status {}
|
@ -2,8 +2,10 @@ use std::process::ExitCode;
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
mod commands;
|
||||
mod app;
|
||||
mod cli;
|
||||
|
||||
fn main() -> ExitCode {
|
||||
cli::Butler::parse().run()
|
||||
cli::Cli::parse().run()
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
mod butler;
|
||||
|
||||
pub use butler::Cli as Butler;
|
Loading…
Reference in New Issue
Block a user