Skip to content

feat: add copyable launchctl commands#6

Merged
azu merged 3 commits into
azu:mainfrom
jimyag:feat/launchctl-command-tab
Jun 24, 2026
Merged

feat: add copyable launchctl commands#6
azu merged 3 commits into
azu:mainfrom
jimyag:feat/launchctl-command-tab

Conversation

@jimyag

@jimyag jimyag commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a Commands tab to the job detail sheet with copyable launchctl commands for the selected launchd job.

Changes

  • Add a CommandPanel component that renders start, stop, enable, disable, and remove commands.
  • Add a Commands tab next to Configuration and Logs in the job detail sheet.
  • Quote plist paths safely for shell copy/paste and use sudo for system daemon commands.

Verification

  • pnpm typecheck
  • pnpm lint
  • pnpm test

Notes

This PR intentionally does not include runtime monitoring or advanced plist editing changes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new Commands tab to the job detail sheet, providing copyable terminal commands intended to help users manage the selected launchd job.

Changes:

  • Added a new CommandPanel component that renders copy-to-clipboard command rows.
  • Added a “Commands” tab in JobDetail alongside Configuration and Logs.
  • Implemented shell-quoting logic for plist paths and conditional sudo prefixing.

Reviewed changes

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

File Description
src/components/JobDetail.tsx Adds a new Tabs entry and content panel for “Commands”.
src/components/CommandPanel.tsx Introduces command construction + copy-to-clipboard UI for launchctl-related commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/CommandPanel.tsx
Comment thread src/components/CommandPanel.tsx
Comment thread src/components/CommandPanel.tsx Outdated

@azu azu left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@azu azu merged commit c446935 into azu:main Jun 24, 2026
2 checks passed
@jimyag jimyag deleted the feat/launchctl-command-tab branch June 24, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants