Loading files
56ae2e47fThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
56ae2e47fThis file is pinned to the selected release. Download the original to open it in your design tool.
/// Result of `harness link connect <machineId> --stdin --json` — the password-authenticated
/// replacement for the old token-based `import`.
class CliLinkConnectResult {
/// Null on success.
final String? error;
/// The machineId the CLI actually linked — echoed back from its own success line. Null if
/// [error] is set, or if the CLI's output didn't match the expected shape.
final String? linkedMachineId;
/// The linked machine's fingerprint, for the user to verify.
final String? fingerprint;
const CliLinkConnectResult({
this.error,
this.linkedMachineId,
this.fingerprint,
});
}
/// One row of `harness link list`.
class LinkedMachine {
final String machineId;
final String fingerprint;
/// As printed by the CLI: `YYYY-MM-DD HH:MM`.
final String linkedAt;
const LinkedMachine({
required this.machineId,
required this.fingerprint,
required this.linkedAt,
});
}
class CliLinkListResult {
/// Null on success (an empty list is success with zero rows, not an error).
final String? error;
final List<LinkedMachine> machines;
const CliLinkListResult({this.error, this.machines = const []});
}