Files
PeachDeployments/lib/Peach/see/systemd/Systemd.dart
alvocool 38881d1fe1 Add app source and tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 10:15:30 +03:00

21 lines
713 B
Dart

import 'package:flutter/cupertino.dart';
import '../../about/internal/application/ServerProfile.dart';
import '../../about/internal/application/ServiceConfig.dart';
import 'SystemdState.dart';
/// Step-by-step builder that generates a systemd `.service` unit, previews it,
/// then registers it (daemon-reload → enable → start → status).
class Systemd extends StatefulWidget {
final ServerProfile server;
/// Prefills the form and, once the unit registers, has its `serviceName`
/// updated so deploys and log views use the new unit.
final ServiceConfig? service;
const Systemd({super.key, required this.server, this.service});
@override
State<Systemd> createState() => SystemdState();
}