arr-ai / arrai

The ultimate data engine.
http://arr.ai
Apache License 2.0
20 stars 15 forks source link

Expose arr.ai runtime info via //arrai.info #522

Closed ericzhang6222 closed 4 years ago

ericzhang6222 commented 4 years ago

Suggested output format:

@> //arrai.info
(
    version: 'DIRTY-v0.72.0',
    date: //time{2020-06-15T10:43:14Z},
    git: (
        commit: 'f633d75a049bca9343a442ada1d49577b676ff36',
        tags: {'v0.72.0'},
    ),
    go: (
        os: 'linux',
        arch: 'amd64',
        compiler: (
            version: 'go1.14.3',
            os: 'linux',
            arch: 'amd64',
        ),
    ),
)
ericzhang6222 commented 4 years ago

Moved from https://github.com/anz-bank/sysl-go/issues/128 which has been closed.

ericzhang6222 commented 4 years ago

Current output is:

@> //arrai.info
(date: '2020-07-24T08:09:49Z', git: (commit: '52c577427456bee1754840cbe53455c0809a1e92', tags: {'v0.101.0'}), go: (arch: 'amd64', compiler: (arch: 'amd64', os: 'darwin', version: 'go1.14'), os: 'darwin'), version: 'DIRTY-52c577427456bee1754840cbe53455c0809a1e92 (from v0.101.0)')
@>  

And prettified output looks like:

@> //arrai.info
(
  date: '2020-07-24T08:09:49Z', 
  git: (
    commit: '52c577427456bee1754840cbe53455c0809a1e92', 
    tags: {'v0.101.0'}
  ), 
  go: (
    arch: 'amd64', 
    compiler: (
      arch: 'amd64', 
      os: 'darwin', 
      version: 'go1.14'
    ), 
    os: 'darwin'
  ), 
  version: 'DIRTY-52c577427456bee1754840cbe53455c0809a1e92 (from v0.101.0)'
)
@>  

Pretty output will be done by https://github.com/arr-ai/arrai/issues/171#issuecomment-662364599