expect:"NAME \tVERSION\tDESCRIPTION \ntesting/mariadb\t0.3.0\tChart for MariaDB",
expect:"NAME \tCHART VERSION\tAPP VERSION\tDESCRIPTION \ntesting/mariadb\t0.3.0 \t\tChart for MariaDB",
},
},
{
{
name:"search for 'alpine', expect two matches",
name:"search for 'alpine', expect two matches",
args:[]string{"alpine"},
args:[]string{"alpine"},
expect:"NAME \tVERSION\tDESCRIPTION \ntesting/alpine\t0.2.0\tDeploy a basic Alpine Linux pod",
expect:"NAME \tCHART VERSION\tAPP VERSION\tDESCRIPTION \ntesting/alpine\t0.2.0 \t2.3.4 \tDeploy a basic Alpine Linux pod",
},
},
{
{
name:"search for 'alpine' with versions, expect three matches",
name:"search for 'alpine' with versions, expect three matches",
args:[]string{"alpine"},
args:[]string{"alpine"},
flags:[]string{"--versions"},
flags:[]string{"--versions"},
expect:"NAME \tVERSION\tDESCRIPTION \ntesting/alpine\t0.2.0 \tDeploy a basic Alpine Linux pod\ntesting/alpine\t0.1.0\tDeploy a basic Alpine Linux pod",
expect:"NAME \tCHART VERSION\tAPP VERSION\tDESCRIPTION \ntesting/alpine\t0.2.0 \t2.3.4 \tDeploy a basic Alpine Linux pod\ntesting/alpine\t0.1.0 \t1.2.3 \tDeploy a basic Alpine Linux pod",