Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to write nested structure to YAML file #2

Open
SAGARSURI opened this issue Apr 25, 2022 · 1 comment
Open

Unable to write nested structure to YAML file #2

SAGARSURI opened this issue Apr 25, 2022 · 1 comment

Comments

@SAGARSURI
Copy link

Hi, First thank you for the package. I have a specific issue while writing nested structure to yaml file. Here is the following template:

name: projectName

packages:
  #- packages/*

I am using the following code:

final melos = SettingsYaml.load(pathToSettings: 'melos.yaml');
  melos['name'] = name;
  melos['packages'] = <String, String>{
    'packages': '/*'
  };
  melos.save();

But I am getting the following output:

# SettingsYaml settings file
name: "mppm"
packages: {packages: /*}
@bsutton
Copy link
Collaborator

bsutton commented Apr 25, 2022

Your code looks fine so not certain what is going wrong.

I'm not going to have time to look at this in the next month or so.

Of you are able to submit a PR I would publish they fixed code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants