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

refactor!: Rename module to not use uppercase #60

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Let's start with an hello world:
```D
module helloworld;

import configy.Read;
import configy.read;

import std.stdio;
import std.typecons;
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/source/app.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module helloworld;

import configy.Read;
import configy.read;

import std.getopt;
import std.stdio;
Expand Down
6 changes: 3 additions & 3 deletions source/configy/Attributes.d → source/configy/attributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

*******************************************************************************/

module configy.Attributes;
module configy.attributes;

import std.traits;

Expand Down Expand Up @@ -298,8 +298,8 @@ public auto converter (FT) (FT func)
public interface ConfigParser (T)
{
import dyaml.node;
import configy.FieldRef : StructFieldRef;
import configy.Read : Context, parseField;
import configy.fieldref : StructFieldRef;
import configy.read : Context, parseField;

/// Returns: the node being processed
public inout(Node) node () inout @safe pure nothrow @nogc;
Expand Down
4 changes: 2 additions & 2 deletions source/configy/Exceptions.d → source/configy/exceptions.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

*******************************************************************************/

module configy.Exceptions;
module configy.exceptions;

import configy.Utils;
import configy.utils;

import dyaml.exception;
import dyaml.node;
Expand Down
6 changes: 3 additions & 3 deletions source/configy/FieldRef.d → source/configy/fieldref.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

*******************************************************************************/

module configy.FieldRef;
module configy.fieldref;

// Renamed imports as the names exposed by `FieldRef` shadow the imported ones.
import configy.Attributes : CAName = Name, CAOptional = Optional, SetInfo;
import configy.attributes : CAName = Name, CAOptional = Optional, SetInfo;

import std.meta;
import std.traits;
Expand Down Expand Up @@ -86,7 +86,7 @@ package template FieldRef (alias T, string name, bool forceOptional = false)

unittest
{
import configy.Attributes : Name;
import configy.attributes : Name;

static struct Config1
{
Expand Down
12 changes: 6 additions & 6 deletions source/configy/Read.d → source/configy/read.d
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@

*******************************************************************************/

module configy.Read;
module configy.read;

public import configy.Attributes;
public import configy.Exceptions : ConfigException;
import configy.Exceptions;
import configy.FieldRef;
import configy.Utils;
public import configy.attributes;
public import configy.exceptions : ConfigException;
import configy.exceptions;
import configy.fieldref;
import configy.utils;

import dyaml.exception;
import dyaml.node;
Expand Down
10 changes: 5 additions & 5 deletions source/configy/Test.d → source/configy/test.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

*******************************************************************************/

module configy.Test;
module configy.test;

import configy.Attributes;
import configy.Exceptions;
import configy.Read;
import configy.Utils;
import configy.attributes;
import configy.exceptions;
import configy.read;
import configy.utils;

import dyaml.node;

Expand Down
2 changes: 1 addition & 1 deletion source/configy/Utils.d → source/configy/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

*******************************************************************************/

module configy.Utils;
module configy.utils;

import std.format;

Expand Down