Skip to content

feat(cli): set server as default command#7

Merged
crodriguesbr merged 1 commit into
mainfrom
feature/default-server-command
Dec 5, 2025
Merged

feat(cli): set server as default command#7
crodriguesbr merged 1 commit into
mainfrom
feature/default-server-command

Conversation

@crodriguesbr
Copy link
Copy Markdown
Contributor

Description

Set the server command as the default command when the user runs nfury without any arguments.

Changes

  • Changed CommandApp() to CommandApp<ServerCommand>() in Program.cs to define the server as the default command

Motivation

This change improves the user experience by allowing users to start the web dashboard with a simple nfury command instead of requiring nfury server. Since the dashboard is the primary feature of the application, it makes sense for it to be the default behavior.

How to Test

  1. Build the project: dotnet build
  2. Run without arguments: dotnet run or ./nfury
  3. Verify the web server starts automatically
  4. Confirm other commands still work: nfury run, nfury server

Checklist

  • Code follows the project's coding style
  • Changes have been tested locally
  • Documentation has been updated (if applicable)
  • Tests have been added/updated (if applicable)

Set ServerCommand as the default command when running nfury without
arguments. Users can now start the web dashboard by simply running
`nfury` instead of `nfury server`.
@crodriguesbr crodriguesbr merged commit 7e39199 into main Dec 5, 2025
2 checks passed
@crodriguesbr crodriguesbr deleted the feature/default-server-command branch December 5, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant