deto

command module
v0.0.0-...-d3f0cb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 1 Imported by: 0

README

deto - Dev Tools

Includes all common tools for dev on command line

cmd/: Contains the main applications of the project. Each folder under cmd is usually a separate executable. The main.go file in each folder is the entry point for that particular app.

pkg/: Holds utility libraries or reusable packages across your project. Any functionality you want to share across your project, like custom loggers or helpers, goes here.

configs/: Stores configuration files, such as YAML or JSON files, for setting up the application. This is useful for environment settings or loading configuration at runtime.

scripts/: Contains various shell scripts or build scripts. These might automate tasks like testing, deployment, or database migrations.

Cobra CLI Library

Adding new commands to the CLI is easy with Cobra. To add a new command, you can use the Cobra CLI generator. This will create a new command file in the cmd/ directory with a basic structure.

cobra-cli add [commandName] --config ./configs/cobra.yaml

Building the CLI

To build the CLI, you can use the go build command. This will compile the application and create an executable file in the root directory of the project.

go build -o deto

Documentation

Overview

Copyright © 2024 Hal Ng <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL