add(cli): cli interface for push, pull and version

This commit is contained in:
2023-10-26 00:32:25 +02:00
parent 854dafde01
commit 32a389d464
14 changed files with 750 additions and 64 deletions

34
main.go Normal file
View File

@@ -0,0 +1,34 @@
package main
import (
"gitea.yves-biener.de/yves-biener/gitwarrior/cmd"
)
var ( // used for flags
dryRun bool
)
func main() {
cmd.Execute()
// TODO: server url may be also be derived from the git configuration?
// NOTE: this can be used to add / modify tasks
// var update_tasks []taskwarrior.Task
// task := taskwarrior.NewTask(
// "This is a test task from gitwarrior",
// "gitwarrior",
// "issue",
// )
// update_tasks = append(update_tasks, task)
// taskwarrior.UpdateTasks(update_tasks)
// necessary configurations (see config file gitw.json)
// - access code for gitea
// - configuration for taskwarrior settings?
// cli actions and parameters
// - action: diff (i.e. what has changed between the current state of the taskwarrior tasks and the git issues / milestones)
// - action: status (are there changes between the taskwarrior tasks and the gitea issues / milestones, that would require a sync)
// - action: sync (synch diffs between taskwarrior tasks and gitea issues / milestones)
// - parameter: --dry-run (do only show changes that would be applied but do not apply them)
}