mirror of https://github.com/Textualize/rich.git
13 lines
272 B
Python
13 lines
272 B
Python
|
import os
|
||
|
import sys
|
||
|
|
||
|
from rich import print
|
||
|
from rich.columns import Columns
|
||
|
|
||
|
if len(sys.argv) < 2:
|
||
|
print("Usage: python columns.py DIRECTORY")
|
||
|
else:
|
||
|
directory = os.listdir(sys.argv[1])
|
||
|
columns = Columns(directory, equal=True, expand=True)
|
||
|
print(columns)
|