Skip to content

Review and Improve Our Website Documentation #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions src/commands/about.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@

# `about`

## Description
## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)

Displays information about BuildCLI.
## Description

## Description
Displays comprehensive information about BuildCLI, a command-line interface (CLI) designed to simplify the build process for Java developers. BuildCLI offers a variety of features that enhance productivity and streamline workflows, including project management, dependency handling, and automated build processes.
## Usage

```bash
Expand All @@ -23,12 +31,32 @@ buildcli about
### Example 1

Display information about BuildCLI.

```bash
buildcli about
```

## See Also
### Example 2

Display the version of BuildCLI.
```bash
buildcli about --version
```

### Example 3
Display help information for the command.
```bash
buildcli about --help
```

## Troubleshooting
If you encounter issues running the command, ensure that BuildCLI is correctly installed and added to your system’s PATH.

## Related Commands
- [project](project.md)
- [autocomplete](autocomplete.md)


## See Also

- [Installation](installation.md)
- [autocomplete](autocomplete.md)
24 changes: 21 additions & 3 deletions src/commands/autocomplete.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# `autocomplete`

## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)
## Description

Configures shell autocomplete for BuildCLI commands.
Configures shell autocomplete for BuildCLI commands. This feature enhances the user experience by allowing users to quickly access available commands and options without needing to remember them.


## Usage

Expand All @@ -19,14 +27,24 @@ buildcli autocomplete

## Examples

### Example 1
### Example 1: Configure Autocomplete

Configure autocomplete for supported shells.
To configure autocomplete for supported shells, simply run:

```bash
buildcli autocomplete
```


### Example 2: Check Autocomplete
After running the configuration command, you can test it by typing `buildcli` followed by a space and then pressing the Tab key to see the available commands.

### Troubleshooting
If autocomplete does not work as expected:

* Ensure that your shell configuration file `(e.g., .bashrc, .zshrc)` has been updated correctly.
* Restart your terminal or source your configuration file again.
* Verify that BuildCLI is correctly installed and accessible in your system’s PATH. For installation instructions, see the [installation](../installation.md) section.
## See Also

- [project](project.md)
Expand Down
71 changes: 71 additions & 0 deletions src/commands/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# `build`

## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Arguments](#arguments)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)
## Description

Handles the building and compiling of projects within BuildCLI. This command allows users to compile their project source code, manage build configurations, and ensure that the project is ready for execution or deployment.

## Usage

```bash
buildcli build [options]
```

## Options

| Option | Description |
|--------------------|-----------------------------------------------|
| `-h, --help` | Display help information about the command. |
| `-V, --version` | Display the version of the command. |
| `--clean` | Cleans the build directory before building. |
| `--skip-tests` | Skips running tests during the build process. |
| `--profile <name>` | Specifies the build profile to use. |


### Examples
### Example 1: Build the Project
To build the project:

```bash
buildcli build
```
This command compiles the project source code and prepares it for execution.

### Example 2: Clean and Build the Project
To clean the build directory and then build the project:
```bash
buildcli build --clean
```
This command removes any previous build artifacts before compiling the project.

### Example 3: Build with a Specific Profile
To build the project using a specific profile:
```bash
buildcli build --profile production
```

### Example 4: Build and Skip Tests
To build the project while skipping tests:
```bash
buildcli build --skip-tests
```
This command compiles the project without running any tests.

### Troubleshooting
If you encounter issues while building the project:

* Ensure that your project is correctly initialized and contains the necessary files.
* Check for any errors in the build output for guidance on what went wrong.
* Refer to the help for the build command using `buildcli build --help` for more information.

### See Also
- [project](project.md)
- [run](run.md)
- [test](test.md)
56 changes: 49 additions & 7 deletions src/commands/project.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@

[
# `project`

## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)
## Description

Manages Java projects with various subcommands.
Manages project-specific settings and configurations for BuildCLI. This command allows users to create, manage, and view project details, ensuring that the CLI operates within the correct project context.


## Usage

Expand Down Expand Up @@ -35,15 +42,50 @@ buildcli project [subcommand] [options] [arguments]

## Examples

### Example 1
### Example 1: Initialize a New Project

To create a new Java project, use the init subcommand:

```bash
buildcli project init --name MyNewProject
```
To add a new project:

Initialize a new project.
### Example 2: Add a New Project
```bash
buildcli project add --name MyProject --path /path/to/myproject
```
This command adds a project named MyProject located at the specified path to the project list.

### Example 3: Remove an Existing Project
To remove an existing project from the project list:
```bash
buildcli project init
buildcli project remove --name MyProject
```

### Example 4: Build the Project
To build the project:
```bash
buildcli project build
```


### Example 5: Run the Project
To run the project:
```bash
buildcli project run
```

### Troubleshooting
If you encounter issues while using the project commands:

* Ensure that you have initialized the project correctly using the init command.
* Check that the necessary files and directories are in place.
* Refer to the specific subcommand help using buildcli project [subcommand] `--help` for more information.


## See Also

- [autocomplete](autocomplete.md)
- [about](about.md)
- [about](about.md)
- [version](version.md)]()
70 changes: 70 additions & 0 deletions src/commands/run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# `run`

## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)

## Description

Handles the execution of projects within BuildCLI. This command allows users to run their Java applications directly from the command line, facilitating testing and development workflows.

## Usage
```bash
buildcli run [options]
```

## Options

| Option | Description |
|--------------------|-----------------------------------------------------|
| `-h, --help` | Display help information about the command. |
| `-V, --version` | Display the version of the command. |
| `--profile <name>` | Specifies the profile to use during execution. |
| `--debug` | Skips running tests during the build process. |
| `--port <number> ` | Specifies the port on which to run the application. |


### Examples
### Example 1: Run the Project
To run the project:
```bash
buildcli run
```
This command executes the main application.

### Example 2: Run with a Specific Profile
To run the project using a specific profile:
```bash
buildcli run --profile development
```
This command executes the application with the settings defined in the `development` profile.

### Example 3: Run in Debug Mode
To run the project in debug mode:
```bash
buildcli run --debug
```
This command starts the application with debugging enabled, allowing for step-by-step execution.

### Example 4: Run on a Specific Port
To run the project on a specific port:
```bash
buildcli run --port 8080
```
This command executes the application and binds it to port 8080.

### Troubleshooting
If you encounter issues while running the project:

* Ensure that the project has been built successfully before running.
* Check for any runtime errors in the console output.
* Refer to the help for the run command using `buildcli run --help` for more information.

### See Also
- [build](build.md)
- [test](test.md)
- [project](project.md)
63 changes: 63 additions & 0 deletions src/commands/set.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# `set`

## Table of Contents
- [Description](#description)
- [Usage](#usage)
- [Options](#options)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [See Also](#see-also)
## Description

Handles the configuration settings of projects within BuildCLI. This command allows users to set various properties and parameters of their projects, ensuring that they are tailored to specific requirements.

## Usage
```bash
buildcli set [options]
```

### Options

| Option | Description |
|---------------------|-----------------------------------------------------|
| `-h, --help` | Display help information about the command. |
| `-V, --version` | Display the version of the command. |
| `--property <name>` | Specifies the property to set. |
| `--value <value>` | Specifies the value for the property. |
| `--reset` | Resets the specified property to its default value. |

### Examples
### Example 1: Set a Project Property
To set a property for the project:

```bash
buildcli set --property version --value 1.0.0
```
This command sets the project version to `1.0.0`.

### Example 2: Reset a Project Property
To reset a specific property to its default value:

```bash
buildcli set --property version --reset
```
This command resets the project version property to its default value.

### Example 3: Set Multiple Properties
To set multiple properties at once:
```bash
buildcli set --property name --value MyProject --property description --value "This is my project"
```
This command sets the project name and description simultaneously.

### Troubleshooting
If you encounter issues while setting project properties:

* Ensure that the property name is valid and recognized by the project configuration.
* Check for any errors in the command output for guidance on what went wrong.
* Refer to the help for the set command using `buildcli set --help` for more information

### See Also
- [build](build.md)
- [run](run.md)
- [project](project.md)
Loading