mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 17:36:25 -05:00
checkpoint
This commit is contained in:
parent
e769d94e00
commit
479cfafe5a
2 changed files with 41 additions and 0 deletions
21
src/branch_tier.cpp
Normal file
21
src/branch_tier.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "branch_tier.hpp"
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
BranchTier::BranchTier()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
BranchTier::BranchTier(toml::value const &v_)
|
||||
{
|
||||
auto const &branches = toml::find(v_,"branch").as_array();
|
||||
|
||||
for(auto const &branch : branches)
|
||||
{
|
||||
auto const &table = branch.as_table();
|
||||
|
||||
std::string s = table.at("type").as_string();
|
||||
fmt::print("{}\n",s);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue