dnot

command module
v0.0.0-...-676683e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 9 Imported by: 0

README

Dnot

Go Report Card GitHub release (latest by date)

Dnot is a simple, interactive command-line tool written in Go that allows you to quickly find and run .csproj projects within the current directory. It uses a TUI (Terminal User Interface) built with the Bubble Tea framework.

Features

  • Interactive Project Selection: Presents a clean, navigable list of .csproj files in the current directory.
  • Easy Navigation: Use arrow keys to navigate the list and Enter to select a project.
  • Instant Execution: Runs the selected project using dotnet run --project.
  • Error Handling: Gracefully handles errors, such as missing .csproj files or failures during project execution.

Prerequisites

  • Go: You need Go (version 1.18 or later is recommended) installed on your system. Download Go
  • dotnet SDK: You need the .NET SDK installed to run the projects. Download .NET SDK

Installation via sh installer

This script automates downloading the latest pre-built binary from GitHub and installing it to your $HOME/.local/bin directory.

curl -sSL https://raw.githubusercontent.com/Tejaromalius/Dnot/main/install.sh | sh

Alternatively, you can download the script, make it executable, and then run it:

curl -sSL https://raw.githubusercontent.com/Tejaromalius/Dnot/main/install.sh -o install.sh
chmod +x install.sh
./install.sh

Important: Ensure that $HOME/.local/bin is in your $PATH environment variable. You can usually add this to your shell's configuration file (e.g., ~/.bashrc, ~/.zshrc):

Example

$ cd MyDotnetProjects
$ dnot

# A list of .csproj files appears.  Use arrow keys to navigate.

> 1. MyProject.csproj
  2. AnotherProject.csproj
  3. LibraryProject.csproj

# Press Enter on MyProject.csproj

# ... output from `dotnet run --project MyProject/MyProject.csproj` ...

Why this tool?

Truth be told, I was tired of writing dotnet run --project x.csproj every time.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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