file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/Slopwatch/Detection/Rules/DisabledTestRule.cs
C#
using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Slopwatch.Suppression; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects disabled tests that may indicate incomplete work or test failures being hidd...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Detection/Rules/EmptyCatchBlockRule.cs
C#
using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Slopwatch.Suppression; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects empty catch blocks that swallow exceptions. /// Rule ID: SW003 /// </summary...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Detection/Rules/PackageVersionOverrideRule.cs
C#
using System.Collections.Concurrent; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Xml; using System.Xml.Linq; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects CPM (Central Package Management) version override abuse. /// Rule ID: SW006 /// </summary> /// <rema...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Detection/Rules/ProjectFileRule.cs
C#
using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Xml; using System.Xml.Linq; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects project file (.csproj, .props, .targets) slop patterns. /// Rule ID: SW005 /// </summary> /// <remarks> /// This rule identifies problema...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Detection/Rules/TimeoutJigglingRule.cs
C#
using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Slopwatch.Suppression; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects suspicious delays in test files that may indicate timing-dependent tests. //...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Detection/Rules/WarningSuppressRule.cs
C#
using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Slopwatch.Suppression; namespace Slopwatch.Detection.Rules; /// <summary> /// Detects compiler warning suppression that may hide real issues. /// Rule ID: SW002 /...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Suppression/InlineCommentSuppression.cs
C#
using System.Text.RegularExpressions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; namespace Slopwatch.Suppression; /// <summary> /// Represents an inline comment suppression parsed from source code. /// </summary> public sealed record InlineCommentSuppression { /// <summary> /// Gets th...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Suppression/SlopwatchSuppressAttribute.cs
C#
using System; namespace Slopwatch.Suppression; /// <summary> /// Suppresses one or more Slopwatch rules for a code element. /// </summary> /// <remarks> /// This attribute requires detailed justification to prevent abuse by LLMs. /// The justification should demonstrate human understanding of why the code /// pattern...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Suppression/SuppressionCategory.cs
C#
namespace Slopwatch.Suppression; /// <summary> /// Defines the standard categories for Slopwatch rule suppressions. /// </summary> /// <remarks> /// <para> /// These categories help classify suppressions and make it easier to audit /// and analyze why rules are being suppressed across a codebase. /// </para> /// /// <...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Slopwatch/Suppression/SuppressionChecker.cs
C#
using System.Text.Json; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Extensions.FileSystemGlobbing; using Slopwatch.Configuration; using Slopwatch.Detection; namespace Slopwatch.Suppression; /// <summary> /// Unified checker for all suppression mechanisms (attributes, inli...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests.Fixtures/CleanCodeSamples.cs
C#
using Xunit; namespace Slopwatch.Tests.Fixtures; /// <summary> /// Clean code samples that should NOT trigger any Slopwatch rules /// Demonstrates proper coding patterns and best practices /// </summary> public class CleanCodeSamples { // ========================================== // CLEAN TEST PATTERNS (Shou...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests.Fixtures/DisabledTestSamples.cs
C#
using Xunit; using Slopwatch.Suppression; namespace Slopwatch.Tests.Fixtures; /// <summary> /// Test fixtures for SW001 - Disabled Test Detection /// Contains both violating and clean examples /// </summary> public class DisabledTestSamples { // SHOULD TRIGGER: SW001 // xUnit Fact with Skip parameter [Fac...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests.Fixtures/EmptyCatchSamples.cs
C#
using System.Diagnostics; using Xunit; using Slopwatch.Suppression; namespace Slopwatch.Tests.Fixtures; /// <summary> /// Test fixtures for SW003 - Empty Catch Block Detection /// Contains both violating and clean examples /// </summary> public class EmptyCatchSamples { // SHOULD TRIGGER: SW003 (Error severity) ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests.Fixtures/TimeoutJigglingSamples.cs
C#
using System.Threading; using Xunit; using Slopwatch.Suppression; namespace Slopwatch.Tests.Fixtures; /// <summary> /// Test fixtures for SW004 - Timeout Jiggling Detection /// Contains both violating and clean examples /// NOTE: This rule only applies to test files (IsTestFile = true) /// </summary> public class Tim...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests.Fixtures/WarningSuppressSamples.cs
C#
using System.Diagnostics.CodeAnalysis; using Slopwatch.Suppression; namespace Slopwatch.Tests.Fixtures; /// <summary> /// Test fixtures for SW002 - Warning Suppression Detection /// Contains both violating and clean examples /// </summary> public class WarningSuppressSamples { // SHOULD TRIGGER: SW002 // #pra...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Analysis/FileAnalyzerTests.cs
C#
using Slopwatch.Analysis; using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Analysis; /// <summary> /// Tests for FileAnalyzer /// </summary> public class FileAnalyzerTests { [Fact] public async Task Test_AnalyzesSingleFile() { // Arrange va...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Baseline/BaselineFileTests.cs
C#
using Slopwatch.Baseline; using Slopwatch.Detection; using Xunit; namespace Slopwatch.Tests.Baseline; public class BaselineFileTests { private static DetectionResult CreateResult( string ruleId, string filePath, int lineNumber, string? codeSnippet = null, string message = "...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Configuration/SlopwatchConfigTests.cs
C#
using System.Text.Json; using Slopwatch.Configuration; using Xunit; namespace Slopwatch.Tests.Configuration; /// <summary> /// Tests for Slopwatch configuration file parsing and validation. /// </summary> public class SlopwatchConfigTests { [Fact] public void Deserialize_ValidConfig_ParsesCorrectly() { ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/DisabledTestRuleTests.cs
C#
using Microsoft.CodeAnalysis.CSharp; using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW001 - Disabled Test Detection Rule /// </summary> public class DisabledTestRuleTests { private readonly DisabledTestRule _rule = new(); ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/EmptyCatchBlockRuleTests.cs
C#
using Microsoft.CodeAnalysis.CSharp; using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW003 - Empty Catch Block Detection Rule /// </summary> public class EmptyCatchBlockRuleTests { private readonly EmptyCatchBlockRule _rule ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/PackageVersionOverrideRuleTests.cs
C#
using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW006 - Package Version Override Detection Rule /// </summary> public class PackageVersionOverrideRuleTests : IDisposable { private readonly PackageVersionOverrideRule _rule = ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/ProjectFileRuleTests.cs
C#
using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW005 - Project File Slop Detection Rule /// </summary> public class ProjectFileRuleTests { private readonly ProjectFileRule _rule = new(); [Fact] public void Test_Det...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/TimeoutJigglingRuleTests.cs
C#
using Microsoft.CodeAnalysis.CSharp; using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW004 - Test Timeout Jiggling Detection Rule /// </summary> public class TimeoutJigglingRuleTests { private readonly TimeoutJigglingRule _r...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Detection/WarningSuppressRuleTests.cs
C#
using Microsoft.CodeAnalysis.CSharp; using Slopwatch.Detection; using Slopwatch.Detection.Rules; using Xunit; namespace Slopwatch.Tests.Detection; /// <summary> /// Tests for SW002 - Warning Suppression Detection Rule /// </summary> public class WarningSuppressRuleTests { private readonly WarningSuppressRule _rul...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Slopwatch.Tests/Suppression/InlineCommentSuppressionTests.cs
C#
using Slopwatch.Suppression; using Xunit; namespace Slopwatch.Tests.Suppression; /// <summary> /// Tests for inline comment suppression parsing and matching. /// </summary> public class InlineCommentSuppressionTests { [Fact] public void Parse_SingleLineComment_WithValidJustification_ParsesCorrectly() { ...
Aaronontheweb/dotnet-slopwatch
60
Catch naughty LLM reward-hacking and bad behavior for .NET coding
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
build.ps1
PowerShell
. "$PSScriptRoot\scripts\getReleaseNotes.ps1" . "$PSScriptRoot\scripts\bumpVersion.ps1" ###################################################################### # Step 1: Grab release notes and update solution metadata ###################################################################### $releaseNotes = Get-ReleaseNote...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install.ps1
PowerShell
# Freshdesk CLI Installer for Windows # # Usage: # iwr -useb https://raw.githubusercontent.com/Aaronontheweb/freshdesk-cli/dev/install.ps1 | iex # # Or download and run: # .\install.ps1 # .\install.ps1 -InstallDir "C:\custom\path" # param( [string]$InstallDir = "", [switch]$Force, [switch]$DryRun, ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install.sh
Shell
#!/usr/bin/env bash # # Freshdesk CLI Installer # # Usage: # curl -sSL https://raw.githubusercontent.com/Aaronontheweb/freshdesk-cli/dev/install.sh | bash # wget -qO- https://raw.githubusercontent.com/Aaronontheweb/freshdesk-cli/dev/install.sh | bash # # Or download and run: # ./install.sh # ./install.sh --dry...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/bumpVersion.ps1
PowerShell
function UpdateVersionAndReleaseNotes { param ( [Parameter(Mandatory=$true)] [PSCustomObject]$ReleaseNotesResult, [Parameter(Mandatory=$true)] [string]$XmlFilePath ) # Load XML $xmlContent = New-Object XML $xmlContent.Load($XmlFilePath) # Find the first Propert...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/getReleaseNotes.ps1
PowerShell
function Get-ReleaseNotes { param ( [Parameter(Mandatory=$true)] [string]$MarkdownFile ) # Read markdown file content $content = Get-Content -Path $MarkdownFile -Raw # Split content based on headers $sections = $content -split "####" # Output object to store result $ou...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/FreshdeskJsonContext.cs
C#
using System.Text.Json; using System.Text.Json.Serialization; using FreshdeskCLI.Models; namespace FreshdeskCLI; [JsonSourceGenerationOptions( WriteIndented = false, PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Helpers/CommandHelp.cs
C#
using System.Collections.Generic; namespace FreshdeskCLI.Helpers; public static class CommandHelp { internal static readonly Dictionary<string, CommandHelpInfo> HelpRegistry = new() { ["config"] = new CommandHelpInfo { Usage = "freshdesk config <subcommand> [options]", ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Helpers/CompletionGenerator.cs
C#
using System.Text; using System.Linq; using System.Collections.Generic; namespace FreshdeskCLI.Helpers; public static class CompletionGenerator { private static readonly string[] GlobalOptions = ["--help", "-h", "--version", "-v", "--about", "--read-only", "-ro"]; private static readonly string[] StatusValues...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Helpers/EnumParser.cs
C#
using FreshdeskCLI.Models; namespace FreshdeskCLI.Helpers; public static class EnumParser { public static bool TryParseTicketStatus(string input, out TicketStatus status) { status = TicketStatus.None; if (string.IsNullOrWhiteSpace(input)) return false; var normalizedInput...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Helpers/OutputFormatter.cs
C#
using System.Text.Json; using FreshdeskCLI.Models; using System.Linq; namespace FreshdeskCLI.Helpers; public static class OutputFormatter { public static void PrintTickets(Ticket[] tickets, string format = "table") { switch (format.ToLowerInvariant()) { case "json": ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Helpers/ProgressIndicator.cs
C#
using System.Diagnostics; namespace FreshdeskCLI.Helpers; public interface IProgressIndicator : IDisposable { void Report(int current, int total, string? message = null); void Report(double percentage, string? message = null); void Complete(string? message = null); } public sealed class ConsoleProgressIn...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Attachment.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class Attachment { public long Id { get; set; } public string Name { get; set; } = string.Empty; public string ContentType { get; set; } = string.Empty; public long Size { get; set; } public DateTimeOffset CreatedAt...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Company.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class Company { public long Id { get; set; } public string Name { get; set; } = string.Empty; public string? Description { get; set; } public string[]? Domains { get; set; } public string? HealthScore { get; set; } ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/CompanyAssociation.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class CompanyAssociation { public long CompanyId { get; set; } }
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/ConfigFile.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class ConfigFile { public string? DefaultProfile { get; set; } public Dictionary<string, FreshdeskConfig> Profiles { get; set; } = new(); } public sealed class FreshdeskConfig { public string Domain { get; set; } = string....
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Contact.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class Contact { public long Id { get; set; } public string Name { get; set; } = string.Empty; public string Email { get; set; } = string.Empty; public string? Phone { get; set; } public string? Mobile { get; set; } ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Conversation.cs
C#
namespace FreshdeskCLI.Models; public sealed class Conversation { public long Id { get; set; } public long UserId { get; set; } public string Body { get; set; } = string.Empty; public string BodyText { get; set; } = string.Empty; public bool Incoming { get; set; } public bool Private { get; set...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Enums.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; [JsonConverter(typeof(JsonNumberEnumConverter<TicketStatus>))] public enum TicketStatus { None = 0, // Default value for uninitialized state Open = 2, Pending = 3, Resolved = 4, Closed = 5, WaitingOnCustomer = 6, Waiting...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/Ticket.cs
C#
namespace FreshdeskCLI.Models; public sealed class Ticket { public long Id { get; set; } public string Subject { get; set; } = string.Empty; public string? Description { get; set; } public string? DescriptionText { get; set; } public TicketStatus Status { get; set; } public TicketPriority Prior...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/TicketSearchResult.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public class TicketSearchResult { [JsonPropertyName("results")] public Ticket[] Results { get; set; } = []; [JsonPropertyName("total")] public int Total { get; set; } }
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Models/TicketWithConversations.cs
C#
using System.Text.Json.Serialization; namespace FreshdeskCLI.Models; public sealed class TicketWithConversations { [JsonPropertyName("ticket")] public required Ticket Ticket { get; init; } [JsonPropertyName("conversations")] public required Conversation[] Conversations { get; init; } }
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Program.cs
C#
using System.Reflection; using System.Text.Json; using FreshdeskCLI; using FreshdeskCLI.Models; using FreshdeskCLI.Helpers; using FreshdeskCLI.Services; using static FreshdeskCLI.Helpers.EnumParser; using static FreshdeskCLI.Helpers.CompletionGenerator; // For now, use a simpler approach without System.CommandLine's c...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/BulkOperationService.cs
C#
using FreshdeskCLI.Helpers; using FreshdeskCLI.Models; namespace FreshdeskCLI.Services; public interface IBulkOperationService { Task<BulkOperationResult<T>> ProcessBulkAsync<T>( IEnumerable<long> ids, Func<long, Task<T>> operation, string operationName, int maxConcurrency = 5, ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/ConfigurationService.cs
C#
using System.Text.Json; using FreshdeskCLI.Models; namespace FreshdeskCLI.Services; public interface IConfigurationService { Task<FreshdeskConfig?> LoadConfigAsync(CancellationToken cancellationToken = default); Task SaveConfigAsync(FreshdeskConfig config, CancellationToken cancellationToken = default); T...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/ExportService.cs
C#
using System.Text; using System.Text.Json; using FreshdeskCLI.Models; using FreshdeskCLI.Helpers; namespace FreshdeskCLI.Services; public interface IExportService { Task ExportTicketsAsync( Ticket[] tickets, string filePath, string format = "json", bool includeConversations = false...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/FreshdeskApiClient.cs
C#
using System.Net; using System.Net.Http.Headers; using System.Text; using System.Text.Json; using System.Linq; using FreshdeskCLI.Models; namespace FreshdeskCLI.Services; public interface IFreshdeskApiClient { Task<Ticket[]> GetTicketsAsync(int page = 1, int perPage = 30, TicketStatus? status = null, string? emai...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/RateLimitHandler.cs
C#
using System.Net; namespace FreshdeskCLI.Services; /// <summary> /// HTTP delegating handler that handles rate limit responses from Freshdesk API. /// Freshdesk API returns 429 Too Many Requests when rate limit is exceeded. /// </summary> public sealed class RateLimitHandler : DelegatingHandler { private const in...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/FreshdeskCLI/Services/UpdateService.cs
C#
using System.Diagnostics; using System.IO.Compression; using System.Runtime.InteropServices; using System.Text.Json; using System.Text.Json.Serialization; namespace FreshdeskCLI.Services; public interface IUpdateService { Task<UpdateInfo?> CheckForUpdateAsync(CancellationToken cancellationToken = default); Ta...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Helpers/EnumParsingTests.cs
C#
using Xunit; using FreshdeskCLI.Models; using FreshdeskCLI.Helpers; namespace FreshdeskCLI.Tests.Helpers; public class EnumParsingTests { [Theory] [InlineData("Open", TicketStatus.Open)] [InlineData("open", TicketStatus.Open)] [InlineData("OPEN", TicketStatus.Open)] [InlineData("2", TicketStatus....
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Helpers/LineEndingTests.cs
C#
using Xunit; namespace FreshdeskCLI.Tests.Helpers; public class LineEndingTests { [Theory] [InlineData("Line 1\r\nLine 2\r\nLine 3", "Line 1\nLine 2\nLine 3")] [InlineData("Line 1\rLine 2\rLine 3", "Line 1\nLine 2\nLine 3")] [InlineData("Line 1\nLine 2\nLine 3", "Line 1\nLine 2\nLine 3")] [InlineD...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Helpers/OutputFormatterTests.cs
C#
using System.Text; using FreshdeskCLI.Helpers; using FreshdeskCLI.Models; namespace FreshdeskCLI.Tests.Helpers; public class OutputFormatterTests : IDisposable { private readonly StringWriter _output; private readonly TextWriter _originalOutput; public OutputFormatterTests() { _originalOutput...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Integration/CommandLineTests.cs
C#
using System.Diagnostics; using System.Text; namespace FreshdeskCLI.Tests.Integration; public class CommandLineTests : IDisposable { private readonly string _testConfigPath; private readonly string _testDownloadPath; private readonly string _cliPath; public CommandLineTests() { _testConfi...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Integration/EndToEndTests.cs
C#
using System.Diagnostics; using System.Text; using System.Text.Json; using FreshdeskCLI.Models; using FreshdeskCLI.Services; namespace FreshdeskCLI.Tests.Integration; public class EndToEndTests : IDisposable { private readonly string _testConfigPath; private readonly string _testDownloadPath; private read...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Integration/ExportServiceTests.cs
C#
using System.Text.Json; using System.Xml.Linq; using FreshdeskCLI.Models; using FreshdeskCLI.Services; namespace FreshdeskCLI.Tests.Integration; public class ExportServiceTests : IDisposable { private readonly string _testOutputPath; private readonly ExportService _exportService; private readonly MockFres...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Integration/MockFreshdeskServer.cs
C#
using System.Net; using System.Text; using System.Text.Json; using FreshdeskCLI; using FreshdeskCLI.Models; namespace FreshdeskCLI.Tests.Integration; public class MockFreshdeskServer : HttpMessageHandler { private readonly Dictionary<string, object> _responses = new(); private readonly Dictionary<string, Http...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Services/ConfigurationServiceTests.cs
C#
using System.Text.Json; using FreshdeskCLI.Models; using FreshdeskCLI.Services; namespace FreshdeskCLI.Tests.Services; public class ConfigurationServiceTests : IDisposable { private readonly string _testConfigPath; private readonly ConfigurationService _service; public ConfigurationServiceTests() { ...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/FreshdeskCLI.Tests/Services/FreshdeskApiClientTests.cs
C#
using System.Net; using System.Text; using System.Text.Json; using FreshdeskCLI; using FreshdeskCLI.Models; using FreshdeskCLI.Services; using Moq; using Moq.Protected; namespace FreshdeskCLI.Tests.Services; public class FreshdeskApiClientTests { private readonly Mock<HttpMessageHandler> _mockHttpHandler; pri...
Aaronontheweb/freshdesk-cli
11
CLI for Freshdesk Support Dashboard
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
benchmarks/Termina.Benchmarks/Program.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using BenchmarkDotNet.Running; // Run all benchmarks in the assembly BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
benchmarks/Termina.Benchmarks/RenderingBenchmarks.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using BenchmarkDotNet.Attributes; using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Benchmarks; /// <summary> /// ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
benchmarks/Termina.Benchmarks/TracingBenchmarks.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using Termina.Diagnostics; namespace Termina.Benchmarks; /// <summary> /// Benchmarks fo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
build.ps1
PowerShell
. "$PSScriptRoot\scripts\getReleaseNotes.ps1" . "$PSScriptRoot\scripts\bumpVersion.ps1" ###################################################################### # Step 1: Grab release notes and update solution metadata ###################################################################### $releaseNotes = Get-ReleaseNote...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/AnimationsGalleryPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rende...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/AnimationsGalleryViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Reactive; using Termina.Terminal; using LayoutSpinnerStyle = Termina.Layout.SpinnerStyle; namespace Termina.Demo.Gallery.Pages; /// <summar...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/GalleryMenuPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rende...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/GalleryMenuViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Reactive; namespace Termina.Demo.Gallery.Pages; /// <summary> /// ViewModel for the gallery menu. /// </summary> public partial class Galle...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/LayoutGalleryPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Input; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Ter...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/LayoutGalleryViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Reactive; namespace Termina.Demo.Gallery.Pages; /// <summary> /// ViewModel for the Layout gallery page. /// </summary> public partial clas...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/SelectionListGalleryPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rende...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/SelectionListGalleryViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Reactive; namespace Termina.Demo.Gallery.Pages; /// <summary> /// ViewModel for the SelectionList gallery page. /// </summary> public parti...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/TextInputGalleryPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Termina.Terminal; names...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Pages/TextInputGalleryViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Reactive; namespace Termina.Demo.Gallery.Pages; /// <summary> /// ViewModel for the TextInput gallery page. /// </summary> public partial c...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Gallery/Program.cs
C#
using Microsoft.Extensions.Hosting; using Termina.Demo.Gallery.Pages; using Termina.Hosting; using Termina.Input; using Termina.Pages; // Check for --test flag (used in CI/CD to run scripted test and exit) var testMode = args.Contains("--test"); var builder = Host.CreateApplicationBuilder(args); // Set up input sour...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Grid/DashboardPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Termina.Terminal; names...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Grid/DashboardViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Input; using Termina.Reactive; namespace Termina.Demo.Grid; /// <summary> /// ViewModel for the GridNode dashbo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Grid/Program.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.Hosting; using Termina.Demo.Grid; using Termina.Hosting; var builder = Host.CreateApplicationBuilder(args); // Register Termin...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.RegionBased/CounterPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Termina.Terminal; names...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.RegionBased/CounterViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Input; using Termina.Reactive; namespace Termina.Demo.RegionBased; /// <summary> /// ViewModel for the counter ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.RegionBased/Program.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.Hosting; using Termina.Demo.RegionBased; using Termina.Hosting; using Termina.Input; // Check for --test flag (used in CI/CD to...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Streaming/Actors/LlmSimulatorActor.cs
C#
using System.Runtime.CompilerServices; using System.Threading.Channels; using Akka; using Akka.Actor; using Akka.Streams; using Akka.Streams.Dsl; namespace Termina.Demo.Streaming.Actors; /// <summary> /// Messages for the LLM simulator actor. /// </summary> public static class LlmMessages { /// <summary> /// ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Streaming/Pages/StreamingChatPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Components.Streaming; using Termina.Demo.Streaming.Actors;...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Streaming/Pages/StreamingChatViewModel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Akka.Actor; using Akka.Hosting; using Termina.Components.Streaming...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo.Streaming/Program.cs
C#
using Akka.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Termina.Demo.Streaming.Actors; using Termina.Demo.Streaming.Pages; using Termina.Hosting; using Termina.Input; // Check for --test flag (used in CI/CD to run scripted test and exit) var testMode = args.Contains("--test");...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/Pages/CounterPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Termina.Terminal; names...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/Pages/CounterViewModel.cs
C#
using System.Reactive.Linq; using Termina.Input; using Termina.Reactive; namespace Termina.Demo.Pages; /// <summary> /// ViewModel for a simple counter demo. /// Demonstrates reactive properties and input handling. /// </summary> public partial class CounterViewModel : ReactiveViewModel { private readonly TraceFi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/Pages/TodoListPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Extensions; using Termina.Input; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Ter...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/Pages/TodoListViewModel.cs
C#
using System.Reactive.Linq; using Termina.Input; using Termina.Reactive; namespace Termina.Demo.Pages; /// <summary> /// ViewModel for a todo list demo. /// Contains only state and business logic - no UI concerns. /// </summary> public partial class TodoListViewModel : ReactiveViewModel { private readonly TraceFi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/Program.cs
C#
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Termina.Demo; using Termina.Demo.Pages; using Termina.Diagnostics; using Termina.Hosting; using Termina.Input; using Termina.Pages; // Check for --test flag (used in CI/CD to run scripted test and exit) var testMode = args.Contai...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
demos/Termina.Demo/TraceFileInfo.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Demo; /// <summary> /// Holds information about the trace file location for display in the UI. /// </summary> public sealed record Trace...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
docs/.vitepress/config.ts
TypeScript
import { defineConfig } from 'vitepress' export default defineConfig({ title: 'Termina', description: 'Reactive Terminal UI Framework for .NET', base: '/termina/', head: [ ['link', { rel: 'icon', href: '/termina/termina-icon.png' }] ], themeConfig: { logo: '/termina-icon.png', nav: [ {...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
docs/.vitepress/theme/Layout.vue
Vue
<script setup lang="ts"> import { computed } from 'vue' import DefaultTheme from 'vitepress/theme' import { useData, useRoute } from 'vitepress' import VersionBadge from './VersionBadge.vue' const { Layout } = DefaultTheme const { theme, frontmatter } = useData() const route = useRoute() // Show footer on doc pages, ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
docs/.vitepress/theme/VersionBadge.vue
Vue
<script setup lang="ts"> import { data } from '../../releases.data' </script> <template> <a v-if="data.latest !== '0.0.0'" href="/termina/changelog" class="version-badge" title="View changelog" > v{{ data.latest }} </a> </template> <style scoped> .version-badge { display: inline-flex; al...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
docs/.vitepress/theme/index.mts
TypeScript
import DefaultTheme from 'vitepress/theme' import Layout from './Layout.vue' export default { extends: DefaultTheme, Layout }
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
docs/releases.data.ts
TypeScript
// VitePress data loader - fetches GitHub releases at build time export interface Release { version: string name: string date: string url: string summary: string isPrerelease: boolean } export interface ReleasesData { latest: string releases: Release[] } declare const data: ReleasesData export { data ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/bumpVersion.ps1
PowerShell
function UpdateVersionAndReleaseNotes { param ( [Parameter(Mandatory=$true)] [PSCustomObject]$ReleaseNotesResult, [Parameter(Mandatory=$true)] [string]$XmlFilePath ) # Load XML $xmlContent = New-Object XML $xmlContent.Load($XmlFilePath) # Update VersionPrefix a...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/getReleaseNotes.ps1
PowerShell
function Get-ReleaseNotes { param ( [Parameter(Mandatory=$true)] [string]$MarkdownFile ) # Read markdown file content $content = Get-Content -Path $MarkdownFile -Raw # Split content based on headers $sections = $content -split "####" # Output object to store result $ou...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC