You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
632 B
23 lines
632 B
using Recyclarr.Platform;
|
|
|
|
namespace Recyclarr.Cli.Console.Setup;
|
|
|
|
public class AppPathSetupTask(ILogger log, IAppPaths paths) : IBaseCommandSetupTask
|
|
{
|
|
public void OnStart()
|
|
{
|
|
log.Debug("App Data Dir: {AppData}", paths.AppDataDirectory);
|
|
|
|
// Initialize other directories used throughout the application
|
|
// Do not initialize the repo directory here; the GitRepositoryFactory handles that later.
|
|
paths.CacheDirectory.Create();
|
|
paths.LogDirectory.Create();
|
|
paths.ConfigsDirectory.Create();
|
|
}
|
|
|
|
public void OnFinish()
|
|
{
|
|
// No work to do for this event
|
|
}
|
|
}
|