Compare commits
No commits in common. "5b73a6b34cf73a6c0648a049023dd6c468e9a5a7" and "2772db19a9cf091056e29c8657dbc23c8c789c20" have entirely different histories.
5b73a6b34c
...
2772db19a9
2 changed files with 8 additions and 42 deletions
30
Todo.md
30
Todo.md
|
|
@ -1,30 +0,0 @@
|
||||||
# To do
|
|
||||||
|
|
||||||
* migrate this todo list into entomologist
|
|
||||||
|
|
||||||
* teach it to work with a git branch
|
|
||||||
- unpack the branch to a directory with `git worktree ${TMPDIR} ${BRANCH}`
|
|
||||||
- operate on the issues in that worktree
|
|
||||||
- git commit the result back to ${BRANCH}
|
|
||||||
- delete and prune the worktree
|
|
||||||
|
|
||||||
* implement `ent new`
|
|
||||||
|
|
||||||
* implement user control over state transitions
|
|
||||||
|
|
||||||
* implement `ent comment ${ISSUE} [-m ${MESSAGE}]`
|
|
||||||
- each issue dir has a `comments` subdir
|
|
||||||
- each comment is identified by a sha1-style uid
|
|
||||||
- each comment is a file or directory under the `${ISSUE}/comments`
|
|
||||||
- comments are ordered by ctime?
|
|
||||||
|
|
||||||
* implement `ent edit ${ISSUE} [-t ${TITLE}] [-d ${DESCRIPTION}]`
|
|
||||||
- or would it be better to put the title and description together into a new `message`, like git commits?
|
|
||||||
|
|
||||||
* implement `ent edit ${COMMENT}`
|
|
||||||
|
|
||||||
* implement `ent attach ${ISSUE} ${FILE}`
|
|
||||||
- each issue has its own independent namespace for attached files
|
|
||||||
- issue description & comments can reference attached files via standard md links
|
|
||||||
|
|
||||||
* write a manpage
|
|
||||||
|
|
@ -16,12 +16,14 @@ struct Args {
|
||||||
enum Commands {
|
enum Commands {
|
||||||
/// List issues.
|
/// List issues.
|
||||||
List,
|
List,
|
||||||
|
// Mdbook {
|
||||||
/// Create a new issue.
|
// /// The name of the recipe to create MD Book for.
|
||||||
New {
|
// target: String,
|
||||||
title: Option<String>,
|
// },
|
||||||
description: Option<String>,
|
// Info {
|
||||||
},
|
// /// The name of the recipe to show info for.
|
||||||
|
// target: String,
|
||||||
|
// },
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
|
|
@ -36,12 +38,6 @@ fn main() -> anyhow::Result<()> {
|
||||||
println!("{} {} ({:?})", uuid, issue.title, issue.state);
|
println!("{} {} ({:?})", uuid, issue.title, issue.state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Commands::New { title, description } => {
|
|
||||||
println!(
|
|
||||||
"should make a new issue, title={:?}, description={:?}",
|
|
||||||
title, description
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue