Compare commits
4 Commits
main
...
philliphof
| Author | SHA1 | Date |
|---|---|---|
|
|
d30f427288 | 5 years ago |
|
|
765575313d | 5 years ago |
|
|
c7240f2f0e | 5 years ago |
|
|
a3dcd62419 | 5 years ago |
12 changed files with 168 additions and 5 deletions
@ -0,0 +1,18 @@ |
|||||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
// See the LICENSE file in the project root for more information.
|
||||
|
|
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace Microsoft.Tye.ConfigModel |
||||
|
{ |
||||
|
public class ConfigNode |
||||
|
{ |
||||
|
public bool? EnableDebugging { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
public string Package { get; set; } = default!; |
||||
|
|
||||
|
public string? Script { get; set; } = default!; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
// See the LICENSE file in the project root for more information.
|
||||
|
|
||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Microsoft.Tye |
||||
|
{ |
||||
|
public class NodeServiceBuilder : LaunchedServiceBuilder |
||||
|
{ |
||||
|
public NodeServiceBuilder(string name, string packagePath, ServiceSource source) |
||||
|
: base(name, source) |
||||
|
{ |
||||
|
PackagePath = packagePath; |
||||
|
} |
||||
|
|
||||
|
public bool EnableDebugging { get; set; } = true; |
||||
|
|
||||
|
public string PackagePath { get; set; } |
||||
|
|
||||
|
public string? Script { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,17 @@ |
|||||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
// See the LICENSE file in the project root for more information.
|
||||
|
|
||||
|
namespace Microsoft.Tye.Hosting.Model |
||||
|
{ |
||||
|
public class NodeRunInfo : ExecutableRunInfo |
||||
|
{ |
||||
|
public NodeRunInfo(string executable, string? workingDirectory, string? args, bool enableDebugging) |
||||
|
: base(executable, workingDirectory, args) |
||||
|
{ |
||||
|
EnableDebugging = enableDebugging; |
||||
|
} |
||||
|
|
||||
|
public bool EnableDebugging { get; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue