41 [[nodiscard]] std::optional<DriveAndPartition>
getDriveAndDisk(std::string_view driveName)
const;
47 std::string getWorkingDir(
unsigned p);
48 void setWorkingDir(
unsigned p, std::string_view dir);
51 std::string driveName;
55 std::vector<std::string> workingDir;
57 using Drives = std::vector<DriveSettings>;
61 void execute(std::span<const TclObject> tokens,
TclObject& result)
override;
62 [[nodiscard]] std::string help(std::span<const TclObject> tokens)
const override;
63 void tabCompletion(std::vector<std::string>& tokens)
const override;
65 [[nodiscard]] std::string getMachinePrefix()
const;
66 [[nodiscard]] Drives::iterator findDriveSettings(
DiskContainer& drive);
67 [[nodiscard]] Drives::iterator findDriveSettings(std::string_view driveName);
68 [[nodiscard]] DriveSettings& getDriveSettings(std::string_view diskName);
70 const DriveSettings& driveData);
72 DriveSettings& driveData);
74 void create(std::span<const TclObject> tokens);
75 void partition(std::span<const TclObject> tokens);
76 void savedsk(
const DriveSettings& driveData, std::string filename);
77 void format(std::span<const TclObject> tokens);
78 std::string chdir(DriveSettings& driveData, std::string_view filename);
79 void mkdir(DriveSettings& driveData, std::string_view filename);
80 [[nodiscard]] std::string dir(DriveSettings& driveData);
81 [[nodiscard]] std::string deleteEntry(DriveSettings& driveData, std::string_view entry);
82 [[nodiscard]] std::string rename(DriveSettings& driveData, std::string_view oldName, std::string_view newName);
83 std::string
import(DriveSettings& driveData,
84 std::span<const TclObject> lists,
bool overwrite);
85 void exprt(DriveSettings& driveData, std::string_view dirname,
86 std::span<const TclObject> lists);