Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

.csv files presented as a table? #20

Closed kb-cov closed 2 years ago

kb-cov commented 2 years ago

Hi Will, when running the rich command and passing it a csv file, I am not getting the table output format as shown in the Readme file.....is there a specific command or option I am missing ? I am on Mac OS...

see output below when I point rich to one of this repo's csv files.....

rich https://raw.githubusercontent.com/Textualize/rich-cli/main/test_data/deniro.csv

"Year", "Score", "Title" 1968, 86, "Greetings" 1970, 17, "Bloody Mama" 1970, 73, "Hi, Mom!" 1971, 40, "Born to Win" 1973, 98, "Mean Streets" 1973, 88, "Bang the Drum Slowly" 1974, 97, "The Godfather, Part II" 1976, 41, "The Last Tycoon" 1976, 99, "Taxi Driver" 1977, 47, "1900" 1977, 67, "New York, New York" 1978, 93, "The Deer Hunter" 1980, 97, "Raging Bull" 1981, 75, "True Confessions" 1983, 90, "The King of Comedy" 1984, 89, "Once Upon a Time in America" 1984, 60, "Falling in Love" 1985, 98, "Brazil" 1986, 65, "The Mission" 1987, 100, "Dear America: Letters Home From Vietnam" 1987, 80, "The Untouchables" 1987, 78, "Angel Heart" 1988, 96, "Midnight Run" 1989, 64, "Jacknife" 1989, 47, "We're No Angels" 1990, 88, "Awakenings" 1990, 29, "Stanley & Iris" 1990, 96, "Goodfellas" 1991, 76, "Cape Fear" 1991, 69, "Mistress" 1991, 65, "Guilty by Suspicion" 1991, 71, "Backdraft" 1992, 87, "Thunderheart" 1992, 67, "Night and the City" 1993, 75, "This Boy's Life" 1993, 78, "Mad Dog and Glory" 1993, 96, "A Bronx Tale" 1994, 39, "Mary Shelley's Frankenstein" 1995, 80, "Casino" 1995, 86, "Heat" 1996, 74, "Sleepers" 1996, 38, "The Fan" 1996, 80, "Marvin's Room" 1997, 85, "Wag the Dog" 1997, 87, "Jackie Brown" 1997, 72, "Cop Land" 1998, 68, "Ronin" 1998, 38, "Great Expectations" 1999, 69, "Analyze This" 1999, 43, "Flawless" 2000, 43, "The Adventures of Rocky & Bullwinkle" 2000, 84, "Meet the Parents" 2000, 41, "Men of Honor" 2001, 73, "The Score" 2001, 33, "15 Minutes" 2002, 48, "City by the Sea" 2002, 27, "Analyze That" 2003, 4, "Godsend" 2004, 35, "Shark Tale" 2004, 38, "Meet the Fockers" 2005, 4, "The Bridge of San Luis Rey" 2005, 46, "Rent" 2005, 13, "Hide and Seek" 2006, 54, "The Good Shepherd" 2007, 21, "Arthur and the Invisibles" 2007, 76, "Captain Shakespeare" 2008, 19, "Righteous Kill" 2008, 51, "What Just Happened?" 2009, 46, "Everybody's Fine" 2010, 72, "Machete" 2010, 10, "Little Fockers" 2010, 50, "Stone" 2011, 25, "Killer Elite" 2011, 7, "New Year's Eve" 2011, 70, "Limitless" 2012, 92, "Silver Linings Playbook" 2012, 51, "Being Flynn" 2012, 29, "Red Lights" 2013, 46, "Last Vegas" 2013, 7, "The Big Wedding" 2013, 29, "Grudge Match" 2013, 11, "Killing Season" 2014, 9, "The Bag Man" 2015, 60, "Joy" 2015, 26, "Heist" 2015, 61, "The Intern" 2016, 11, "Dirty Grandpa"

willmcgugan commented 2 years ago

Are you using the latest version?

kb-cov commented 2 years ago

Sorry, school boy error...just updated and now working....sorry for wasting your time......