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

[FAQ] What does disableNone means in KCL #1

Closed
Peefy opened this issue Nov 28, 2022 · 5 comments
Closed

[FAQ] What does disableNone means in KCL #1

Peefy opened this issue Nov 28, 2022 · 5 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Peefy
Copy link
Contributor

Peefy commented Nov 28, 2022

No description provided.

@Peefy Peefy added the documentation Improvements or additions to documentation label Nov 28, 2022
@Peefy Peefy added help wanted Extra attention is needed good first issue Good for newcomers labels Apr 24, 2023
@d4v1d03
Copy link
Contributor

d4v1d03 commented Feb 2, 2024

Hey @Peefy ,could you please
provide some reference regarding this issue

@Peefy
Copy link
Contributor Author

Peefy commented Feb 3, 2024

Hey @Peefy ,could you please
provide some reference regarding this issue

A: disableNone is a feature in KCL, which can be used to omit attributes with None values. For the following code (main.k)

a = 1
b = null

Run the command kcl main.k -n and the output is

a: 1

@Peefy
Copy link
Contributor Author

Peefy commented Feb 3, 2024

@d4v1d03
Copy link
Contributor

d4v1d03 commented Feb 7, 2024

@Peefy PR is there, please have a look.

@Peefy
Copy link
Contributor Author

Peefy commented Feb 18, 2024

Closed by #271

@Peefy Peefy closed this as completed Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants