matrixorigin / mo_ctl_standalone

mo_ctl tool for standalone matrixone
Apache License 2.0
2 stars 1 forks source link

[Feature Request]: Implement function 'precheck' #18

Closed aronchanisme closed 1 year ago

aronchanisme commented 1 year ago

Is there an existing issue for the feature request?

Feature Description

Usage : mo_ctl precheck # check pre-requisites for mo_ctl Check list : go gcc git mysql

Check before deploying mo, for below aspects,

  1. if it is installed
  2. if version meets required

returns 0 if all ok, otherwise returns 1

Feature Implementation

  1. use which to detect if cmd is installed
  2. write a basic fuction to compare two given versions and if v1 ≥ v2

Additional information

none

aronchanisme commented 1 year ago

feature implemented