Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidleitw/naming
naming made easy: Elevate your code's readability with just one command.
https://github.com/davidleitw/naming
chatgpt command command-line gpt gpt-3 naming tools
Last synced: about 9 hours ago
JSON representation
naming made easy: Elevate your code's readability with just one command.
- Host: GitHub
- URL: https://github.com/davidleitw/naming
- Owner: davidleitw
- License: gpl-3.0
- Created: 2023-03-27T17:43:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-13T12:31:38.000Z (about 1 year ago)
- Last Synced: 2024-08-01T21:43:50.224Z (3 months ago)
- Topics: chatgpt, command, command-line, gpt, gpt-3, naming, tools
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 28
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-chatgpt-api - naming
README
# naming
[![asciicast](https://asciinema.org/a/0iYbY2jqHqqV6vxvcqz1tcMs5.svg)](https://asciinema.org/a/0iYbY2jqHqqV6vxvcqz1tcMs5)
## Introduction
`naming` is a command line tool designed to improve the readability of your code by suggesting intuitive and descriptive names for your functions and variables. Using the ChatGPT API, `naming` generates program naming suggestions that are tailored to your specific code, ensuring that your variable and function names are both accurate and easily understandable.
While the original design of Naming included an `overwrite` flag that allowed users to automatically apply the suggested names to their code, this feature was ultimately removed. This decision was made to encourage developers to evaluate the naming suggestions provided by Naming and manually make changes as necessary. In some cases, short variable names may be more appropriate, especially for variables with a short lifespan.
By removing the `overwrite` feature, `naming` empowers users to consider the suggested names thoughtfully and make the best decisions for their code. Whether you are a seasoned developer or a newcomer to programming, Naming is a valuable tool that can help you write more readable and maintainable code.
## Installation
You can install `naming` using `go install`
```sh
go install github.com/davidleitw/naming@latest
```set `CHATGPT_API_KEY`
```sh
export CHATGPT_API_KEY=
```## Usage
To generate naming suggestions for a specific file, use the following command:```sh
naming -f
```Replace with the path to the file for which you want to generate naming suggestions. naming will analyze the file and provide a list of recommended variable and function names that you can use to improve the readability and maintainability of your code.
If you want to see more information about the naming tool, including a list of available flags and options, you can use the following command:
```sh
naming --help
```This will display a detailed help message that describes all of the available options for the naming tool.
At present, only the simple command -f is available. If you have any useful features you would like naming to support, please contribute a pull request and let's work together to improve the readability of your code!
## License
This project is licensed under the terms of the GNU GENERAL PUBLIC LICENSE. Please see the LICENSE file for full details of the license.