Skip to content
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

Add CLI query mechanism #959

Closed
wants to merge 5 commits into from
Closed

Add CLI query mechanism #959

wants to merge 5 commits into from

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Oct 22, 2016

Allow executing commands without spawning a shell.

To do

  • Tests
  • Documentation
  • Hide behind feature flag
  • Move into a separate command

Detailed description

shell currently opens a shell where commands can be executed. This changes the shell command to also allow executing arbitrary commands.

For example, given a site with a /about.md file:

$ nanoc shell "@items['/about.*'].identifier.ext"
md
$

NOTE: Reusing the shell command for this purpose is not nice. This should be extracted into a different command (e.g. query).

@denisdefreyne
Copy link
Member Author

Question: what is the expected output of this command?

  • Human-readable
  • JSON
  • Ruby #inspect stuff

@denisdefreyne
Copy link
Member Author

Closing for now, as there’s no good use case and open questions remain.

@denisdefreyne denisdefreyne deleted the shell-exec branch October 23, 2016 13:33
@denisdefreyne denisdefreyne removed this from the 4.4 milestone Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant