-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingsProvider.cs
31 lines (30 loc) · 1.1 KB
/
SettingsProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace AutoCloner.VsOnline
{
public static class SettingsProvider
{
public static Settings Hardcoded()
{
var settings = new Settings
{
CloneBaseDirectory = @"C:\src", // TODO Change to your base path where you want to clone everything
Organisation = "", // TODO Update to your org
Username = "", // TODO Update to your username for VS Online, usually an email
Password = "", // TODO Update to your password or token
MaxRepoSize = 300000000 // TODO What is the largest sized repo you want to get? Delete if you want to get all
};
return settings;
}
public static Settings FromArgs(string[] args)
{
// TODO needs validation, support proper switches
var settings = new Settings
{
CloneBaseDirectory = args[0],
Organisation = args[1],
Username = args[2],
Password = args[3],
};
return settings;
}
}
}