Xodc: more "environment" info

I would find it convenient if the xodc tool provided information on various paths. I seem to write (command line) tools that want to manipulate the XOD project directory, the XOD libs, etc.

  • The XOD (default) project directory. It’s ~/xod on my linux. I’ve no idea where it is on MacOS, Windows, BSD, RedHat(s), Android, Commodore64, etc.
  • The XOD libraries directory, ~/xod/__lib__ for me.

Also nice:

  • The XOD IDE command.
  • Also, the version of XOD.

The ruby gem command does a good job of this sort of thing, gem env:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.4.2
  - RUBY VERSION: 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/awgrover/.rvm/gems/ruby-1.8.7-p374
  - RUBY EXECUTABLE: /usr/share/rvm/rubies/ruby-1.8.7-p374/bin/ruby
  - EXECUTABLE DIRECTORY: /home/awgrover/.rvm/gems/ruby-1.8.7-p374/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/awgrover/.rvm/gems/ruby-1.8.7-p374
     - /home/awgrover/.rvm/gems/ruby-1.8.7-p374@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - http://rubygems.org/

You can even ask it for specifics, like gem env path.

hi, these are the directories in W10 64

xod

Not exactly what you are asking for, but the XOD 0.26.0 release comes with the brand-new CLI. See README.

We were not able to build anything on top of the obsolete CLI, but now we can.

1 Like