mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-29 17:49:12 -04:00
refactor: Move to agent architecture
This commit is contained in:
29
context/EnvBlockFormatter.hpp
Normal file
29
context/EnvBlockFormatter.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace QodeAssist::Context::EnvBlockFormatter {
|
||||
|
||||
struct ProjectEnv
|
||||
{
|
||||
QString name;
|
||||
QString sourceRoot;
|
||||
QString buildDir;
|
||||
};
|
||||
|
||||
struct FileEnv
|
||||
{
|
||||
QString filePath;
|
||||
QString mimeType;
|
||||
};
|
||||
|
||||
ProjectEnv currentProject();
|
||||
|
||||
QString formatProject(const ProjectEnv &env);
|
||||
QString formatFile(const FileEnv &env);
|
||||
|
||||
} // namespace QodeAssist::Context::EnvBlockFormatter
|
||||
Reference in New Issue
Block a user