Skip to content

Commit

Permalink
first step on 2.0. achieved some basic functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
pants721 committed Mar 11, 2024
1 parent 0f63ebb commit 568833c
Show file tree
Hide file tree
Showing 12 changed files with 166 additions and 752 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "skely"
version = "0.1.6"
version = "2.0.0"
authors = ["Lucas Newcomb <[email protected]>"]
description = """
A simple command line tool for using and managing skeleton projects
Expand Down
78 changes: 0 additions & 78 deletions SCRATCH.md

This file was deleted.

258 changes: 0 additions & 258 deletions src/app.rs

This file was deleted.

23 changes: 6 additions & 17 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,23 @@ pub struct Cli {
#[derive(Debug, PartialEq, Subcommand)]
pub enum Commands {
/// Lists all configured skeletons
List {
#[arg(short, long)]
verbose: bool,
},
/// Opens skeleton to edit
#[command(arg_required_else_help = true)]
Edit {
/// Id of skeleton to edit
id: String,
},
List,
/// Adds skeleton to configured skeletons
Add {
/// Name of skeleton
/// Source to create skeleton from
#[arg(required = true)]
name: String,
/// Optional source to create skeleton from
#[arg(short, long)]
source: Option<PathBuf>,
/// Creates .sk file without opening editor
source: PathBuf,
/// Identifier of skeleton
#[arg(short, long)]
touch: bool,
id: Option<String>,
},
/// Creates a new project from specified skeleton
New {
/// Id of skeleton to copy
#[arg(required = true)]
id: String,
/// Desired project path
#[arg(short, long)]
path: Option<PathBuf>,
/// Optional name, defaults to directory name
#[arg(short, long)]
Expand Down
Loading

0 comments on commit 568833c

Please sign in to comment.