Add app source and tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
20
lib/Peach/see/systemd/Systemd.dart
Normal file
20
lib/Peach/see/systemd/Systemd.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user