promp file path can be passed by parameter

Open Beginner friendly
#2,863 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
shell
Domain
cli

Research direction

Start by locating the CLI argument handling for the existing copilot -p "prompt" flow. Add support for the proposed copilot -f /prompt.md form, using the file contents as the prompt, and verify that large prompts and special characters are passed correctly.

Written by the indexing model from the issue text.

Description

area:non-interactive
Describe the feature or problem you'd like to solve

No response

Proposed solution

Currently, you are allow to do copilot -p "prompt"
If prompts are large, or contain quotes or other special characters, it would be better to have the prompt in a file and pass it to the cli (ex copilot -f /prompt.md) instead of having to use cat or other commands.

Example prompts or workflows

No response

Additional context

No response

Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-cli

All issues in github/copilot-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.