Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
asg4389i38n
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleyChatha committed Mar 10, 2020
1 parent dd1eeea commit 9dc7868
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ dependency "vibe-d:http" version="0.8.6-beta.1"
dependency "asdf" version="~>0.4.7"
dependency "vibe-d:inet" version="0.8.6-beta.1"
dependency "vibe-d:core" version="0.8.6-beta.1"
dependency "standardpaths" version="~>0.8.1"
targetType "executable"
targetPath "bin"
8 changes: 8 additions & 0 deletions source/aim/common/util.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ private

public import std.path : PATH = buildNormalizedPath;

string CONFIG_PATH(string appName, string path)
{
version(linux)
return PATH("/etc/", appName, path);
else
return PATH(".aim/config/", appName, path);
}

const DIR_GIT_KEEP = ".aim/git_keep/";
const DIR_GIT_IGNORE = ".aim/git_ignore/";

Expand Down
3 changes: 1 addition & 2 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import jaster.cli.core, jaster.cli.util;
import std.algorithm : any;
import aim.secrets, aim.common, aim.deploy, aim.daemon;
import jaster.ioc;
import standardpaths;

int main(string[] args)
{
Expand All @@ -11,7 +10,7 @@ int main(string[] args)
cliConfigure!AimSecretsConfig(AimSecretsConfig.CONF_FILE),
cliConfigure!AimSecretsDefineValues(AimSecretsDefineValues.CONF_FILE),
cliConfigure!AimDeployConfig(AimDeployConfig.CONF_FILE),
cliConfigure!AimDaemonConfig(writablePath(StandardPath.config, "aimcli", FolderFlag.create)),
cliConfigure!AimDaemonConfig(CONFIG_PATH("aimcli", "daemon.json")),
ServiceInfo.asSingleton!(IFileDownloader, FileDownloader),
ServiceInfo.asScoped!(IDeployHandlerFactory, DeployHandlerFactory),
ServiceInfo.asScoped!(IAimDeployAddonFactory, AimDeployAddonFactory),
Expand Down

0 comments on commit 9dc7868

Please sign in to comment.