24 lines
587 B
C#
24 lines
587 B
C#
using System;
|
|
using System.Linq;
|
|
using Mixonomer.Fire;
|
|
using System.Threading.Tasks;
|
|
using Mixonomer.Fire.Extensions;
|
|
using Mixonomer.Playlist;
|
|
|
|
namespace Mixonomer.CLI;
|
|
|
|
class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
var repo = new UserRepo(projectId: System.Environment.GetEnvironmentVariable("GOOGLE_CLOUD_PROJECT"));
|
|
|
|
var userContext = await repo.GetUserContext("andy");
|
|
|
|
Console.WriteLine(userContext.User);
|
|
|
|
var walker = new PartTreeWalker(repo);
|
|
var partPlaylists = await walker.GetPlaylistParts("andy", "RAP");
|
|
}
|
|
}
|