2022-04-20 04:05:38 +00:00
|
|
|
import click
|
2023-09-19 06:20:26 +00:00
|
|
|
|
2022-04-20 04:05:38 +00:00
|
|
|
from .check_installation import check_installation
|
|
|
|
|
2023-09-19 06:20:26 +00:00
|
|
|
__all__ = ["check"]
|
2022-04-20 04:05:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
@click.command(help="Check if Colossal-AI is correct based on the given option")
|
2023-09-19 06:20:26 +00:00
|
|
|
@click.option("-i", "--installation", is_flag=True, help="Check if Colossal-AI is built correctly")
|
2022-04-20 04:05:38 +00:00
|
|
|
def check(installation):
|
|
|
|
if installation:
|
|
|
|
check_installation()
|
|
|
|
return
|
|
|
|
click.echo("No option is given")
|