-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Colorize various output messages that are important, such as warnings, errors, log file, and if an update is available.
- Loading branch information
1 parent
87a2798
commit bf87e01
Showing
10 changed files
with
430 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using CommandLine; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Phoenix.WorkshopTool.Options | ||
{ | ||
[Verb("cloud", isDefault: false, HelpText = "Interact with saved files on the Steam Cloud.")] | ||
public class CloudVerb : OptionBase | ||
{ | ||
[Option('l', "list", Default = true, SetName = "list", HelpText = "List files stored in the cloud.")] | ||
public bool List { get; set; } | ||
|
||
[Option("clear", Default = false, SetName = "clear", HelpText = "Clear Steam Cloud (WARNING!). THIS WILL DELETE YOUR STEAM CLOUD FOR SE! Use with --force to actually delete.")] | ||
public bool Clear { get; set; } | ||
|
||
[Option("delete", SetName = "delete", HelpText = "Delete individual file or files from the Steam Cloud")] | ||
public IEnumerable<string> Files { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using CommandLine; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Phoenix.WorkshopTool.Options | ||
{ | ||
public class DownloadVerb : UGCOptionBase | ||
{ | ||
[Option("ids", Min = 1, SetName = "mod", HelpText = "Workshop IDs of items or collections to download")] | ||
public IEnumerable<ulong> Ids { get; set; } | ||
|
||
[Option('E', "no-extract", Default = false, HelpText = "Don't automatically extract downloaded workshop items to AppData.")] | ||
public bool Extract { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using CommandLine; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Phoenix.WorkshopTool.Options | ||
{ | ||
public abstract class OptionBase | ||
{ | ||
#if SE | ||
[Option("modio", HelpText = "Use mod.io by default.")] | ||
#endif | ||
public bool ModIO { get; set; } = false; | ||
|
||
[Option("appdata", Default = "%AppData%\\SpaceEngineers", HelpText = "Specify custom AppData location")] | ||
public string AppData { get; set; } | ||
|
||
[Option('f', "force", Default = false, HelpText = "Force operation. USE WITH CAUTION! (not valid everywhere)")] | ||
public bool Force { get; set; } | ||
} | ||
} |
Oops, something went wrong.