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

[console] Allow showing properties from command line. #934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

waywardmonkeys
Copy link
Member

  • sources/environment/commands/properties.dylan
    (parse-next-argument on <command-property>): New method for parsing
    an argument and converting it to a <command-property>.
  • sources/environment/console/command-line.dylan
    (class <basic-main-command>): Add slot for %show.
    (do-execute-command): Handle -show being passed by invoking the
    show property command.
  • sources/environment/console/compiler-command-line.dylan
    (command-line main): Add new show keyword parameter.
  • sources/environment/console/environment-command-line.dylan
    (command-line main): Add new show keyword parameter.

@waywardmonkeys
Copy link
Member Author

I was adding this as I'd like to be able to query dylan-compiler from a script to get back useful information ... like the current set of registries that would be searched, or where the install location is.

Unfortunately, this patch isn't really sufficient as properties are written for humans to read, so we perhaps need machine-readable property output. Also, error handling isn't all that great yet.

An alternative would be to just handle the set of values that I actually need here rather than making it fully general with the properties system.

* sources/environment/commands/properties.dylan
  (parse-next-argument on <command-property>): New method for parsing
    an argument and converting it to a <command-property>.

* sources/environment/console/command-line.dylan
  (class <basic-main-command>): Add slot for %show.
  (do-execute-command): Handle -show being passed by invoking the
    show property command.

* sources/environment/console/compiler-command-line.dylan
  (command-line main): Add new show keyword parameter.

* sources/environment/console/environment-command-line.dylan
  (command-line main): Add new show keyword parameter.
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.

1 participant