Skip to content

Commit 7c3a079

Browse files
committed
minor rename
1 parent f6ee1f0 commit 7c3a079

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

fpm/app/main.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ program main
88
fpm_install_settings, &
99
get_command_line_settings
1010
use fpm, only: cmd_build, cmd_install, cmd_run, cmd_test
11-
use fpm_new_subcommand, only: cmd_new
11+
use fpm_cmd_new, only: cmd_new
1212

1313
implicit none
1414

fpm/src/fpm.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module fpm
44
use fpm_backend, only: build_package
55
use fpm_command_line, only: fpm_build_settings, fpm_new_settings, &
66
fpm_run_settings, fpm_install_settings, fpm_test_settings
7-
use fpm_environment, only: run
8-
use fpm_filesystem, only: is_dir, join_path, number_of_rows, list_files, exists, basename
7+
use fpm_environment, only: run
8+
use fpm_filesystem, only: is_dir, join_path, number_of_rows, list_files, exists, basename
99
use fpm_model, only: srcfile_ptr, srcfile_t, fpm_model_t, &
1010
FPM_SCOPE_UNKNOWN, FPM_SCOPE_LIB, &
1111
FPM_SCOPE_DEP, FPM_SCOPE_APP, FPM_SCOPE_TEST

fpm/src/fpm_new_subcommand.f90 renamed to fpm/src/fpm_cmd_new.f90

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
module fpm_new_subcommand
1+
module fpm_cmd_new
22

33
use fpm_command_line, only : fpm_new_settings
44
use fpm_environment, only : run, OS_LINUX, OS_MACOS, OS_WINDOWS
55
use fpm_filesystem, only : join_path, exists, basename, mkdir
66
use,intrinsic :: iso_fortran_env, only : stderr=>error_unit
77
implicit none
88
private
9-
public :: cmd_new
9+
public :: cmd_new
1010

1111
contains
1212

1313
subroutine cmd_new(settings) ! --with-executable F --with-test F '
1414
type(fpm_new_settings), intent(in) :: settings
15-
integer :: ierr
1615
character(len=:),allocatable :: bname ! baeename of NAME
1716
character(len=:),allocatable :: message(:)
1817
character(len=:),allocatable :: littlefile(:)
@@ -70,7 +69,7 @@ subroutine cmd_new(settings) ! --with-executable F --with-test F '
7069
&'source-dir="test" ', &
7170
&'main="main.f90" ', &
7271
&'']
73-
72+
7473
littlefile=[character(len=80) :: &
7574
&'program main', &
7675
&'implicit none', &
@@ -162,4 +161,4 @@ end subroutine filewrite
162161

163162
end subroutine cmd_new
164163

165-
end module fpm_new_subcommand
164+
end module fpm_cmd_new

fpm/test/cli_test/cli_test.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ subroutine parse()
194194
fpm_install_settings, &
195195
get_command_line_settings
196196
use fpm, only: cmd_build, cmd_install, cmd_run, cmd_test
197-
use fpm_new_subcommand, only: cmd_new
197+
use fpm_cmd_new, only: cmd_new
198198
class(fpm_cmd_settings), allocatable :: cmd_settings
199199
! duplicates the calls as seen in the main program for fpm
200200
call get_command_line_settings(cmd_settings)

0 commit comments

Comments
 (0)