// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

// gitea-cli is a command-line tool for interacting with Gitea instances.
// It provides efficient chunked uploads, progress tracking, and resume capability.
package main

import (
	"fmt"
	"os"

	"code.gitea.io/gitea/cmd/gitea-cli/cmd"
)

var (
	Version   = "dev"
	BuildTime = "unknown"
	GitCommit = "unknown"
)

func main() {
	cmd.SetVersion(Version, BuildTime, GitCommit)

	if err := cmd.Execute(); err != nil {
		fmt.Fprintf(os.Stderr, "Error: %v\n", err)
		os.Exit(1)
	}
}
