Skip to content

Conversation

@madebydavid
Copy link
Member

@madebydavid madebydavid commented Aug 25, 2025

Description

This is to resolve #83

What's changed

  • Added a --verbose flag to the ship command
  • This is passed when the jobs are started in the StartJobsOptions
  • Reducing non-verbose noise in local messages in useShip
  • Updated the doc for shipthis game ship to include the flag

@madebydavid
Copy link
Member Author

Documentation page for the ship command will need updating too

@madebydavid madebydavid marked this pull request as ready for review August 25, 2025 11:31
@madebydavid madebydavid requested a review from Copilot August 25, 2025 11:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@madebydavid madebydavid requested a review from Copilot August 25, 2025 12:04

This comment was marked as outdated.

@madebydavid
Copy link
Member Author

Copilot is not having a good day

@madebydavid madebydavid requested a review from Copilot August 26, 2025 09:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a --verbose flag to the shipthis game ship command to allow users to control logging verbosity during the ship process.

  • Added verbose flag to ship command and type definitions
  • Modified logging behavior to only show detailed messages when verbose mode is enabled
  • Updated documentation to include the new verbose flag

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/commands/game/ship.tsx Adds verbose flag definition and example usage
src/types/index.ts Adds verbose property to ShipGameFlags type
src/utils/query/useShip.ts Implements verbose logging logic and passes flag to API
src/api/index.ts Adds verbose property to StartJobsOptions type
docs/game/ship.md Updates documentation with verbose flag usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

})

const tmpZipFile = `${process.cwd()}/shipthis-${uuid()}.zip`
log(`Creating zip file: ${tmpZipFile}`)
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two log statements are not controlled by the verbose flag, unlike other similar logging statements. Consider making these consistent by applying the verbose condition: verbose && log(...) to maintain uniform logging behavior.

Suggested change
log(`Creating zip file: ${tmpZipFile}`)
verbose && log(`Creating zip file: ${tmpZipFile}`)

Copilot uses AI. Check for mistakes.
@madebydavid madebydavid merged commit f8fe2a2 into main Aug 26, 2025
@madebydavid madebydavid deleted the 83-feature-add-a---verbose-flag-to-shipthis-game-ship-which-is-passed-through-to-the-build-server branch August 26, 2025 15:43
@madebydavid madebydavid changed the title Adding a --verbose flag to shipthis game ship feat: adding a --verbose flag to shipthis game ship Aug 28, 2025
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.

Feature: Add a --verbose flag to shipthis game ship which is passed through to the build server

2 participants