Skip to content

Commit

Permalink
Added SCRATCH.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pants721 committed Mar 2, 2023
1 parent 526b845 commit b174698
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions SCRATCH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Refernces
- [Clap cookbook git derive](https://docs.rs/clap/latest/clap/_derive/_cookbook/git_derive/index.html)
- [Clap cookbook cargo derive](https://docs.rs/clap/latest/clap/_derive/_cookbook/cargo_example_derive/index.html)
- [Copy directory recursivley function (common.rs)](https://nick.groenen.me/notes/recursively-copy-files-in-rust/)
- [Capitalize word function (common.rs)](https://nick.groenen.me/notes/capitalize-a-string-in-rust/)
- []


































!TODO
[ ] Add default skeleton text
[ ] Add correct error handling (get rid of the 100 std::io::Error's)
[ ] Choose unwrap_or_else() or Result<>

# Command Line Interface

## Commands

- List - List all configured skeletons
- Edit <Skeleton> - Edit a skeleton
- Add <Name> - Configure new skeleton
- Add <Name> --source <Path> - Configure new skeleton from path
- New <Path> - Copy skeleton to specified directory
- Remove <Skeleton> - Remove configured skeleton and its files

### Usage Examples

sk list
sk edit rust (opens vim with the rust sk file/dir)
sk add rust (todo! maybe interactive dir creator)
sk add --source rust_sk/
sk new rust
sk remove javascript

0 comments on commit b174698

Please sign in to comment.